Unprotecting a formfield so seq numbering will work using macro.

S

Steve

Hi,

How can i open my protected form with the seq number still working. Is it
possible to unprotect the text formfield where the number is situated or
unprotect a certain part of the document where it can be placed?

Many Thanks

Steve
 
J

Jay Freedman

Before the statement that inserts the number in the bookmark, insert this
line in the code:

ActiveDocument.Unprotect

After the statement that inserts the number in the bookmark, insert this
line in the code:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True


--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Steve

It was already unprotected but your second line has worked a treat.

Thanks very much Jay.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top