Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Protecting the form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry - 11 Jul 2005 18:50 GMT
I am using a data base program (ACT!) that will insert the name and address  
when the form is opened. If I protect the form, the data will give me an
error that the forma is protect and therefore will not open.  I would like
someone to help me in VB to protect this form once is opened or a macro
that would protect the form on "Entry".  Thanks for your time.
Doug Robbins - 11 Jul 2005 19:05 GMT
Use the commands

ActiveDocument.Unprotect

and

ActiveDocument.Protect wdAllowOnlyFormFields, NoReset

to unprotect and re-protect the document.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I am using a data base program (ACT!) that will insert the name and address
> when the form is opened. If I protect the form, the data will give me an
> error that the forma is protect and therefore will not open.  I would like
> someone to help me in VB to protect this form once is opened or a macro
> that would protect the form on "Entry".  Thanks for your time.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.