adding text to the footer of the protected document

T

Tony

I want to create template which will be protected form. I
would like to add the User Form asking user for some input
which has to be inserted into the footer. What is the best
way to do that.

Thanks for suggestions.

Tony
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Use the code in the userform to insert the text into a bookmark in the
footer and then protect the document.

ActiveDocument.Bookmarks("nameofbookmarkinfooter").Range.InsertBefore "some
text"
ActiveDocument.Protect wdAllowOnlyFormfields, NoReset

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

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