T
TC
Hi. Any advice for the following is greatly appreciated
On my word document, there are several bookmarks that I am attempting to populate from vba
This document originally was protected (forms) and when I used the following statement, I would receive an error that I was not allowed to add text to a protected area of the document
ActiveDocument.Bookmarks("bookmark1").Range.Selec
Selection.Text = "test
So I unprotected the document, and all works fine
HOWEVER ..
this document is setup to print data only from forms -- to be used with a preprinted form. If you manually enter text into the bookmark area, the data (only) will print. If I unprotect the document, the bookmark seems to disappear (if manually entering text, or populating from a macro), and the text will not print
What approach should I be taking here
Can I somehow unprotect the doc in vba, populate the fields and then protect again
Or should I be using something different than bookmarks
Thanks
Tro
On my word document, there are several bookmarks that I am attempting to populate from vba
This document originally was protected (forms) and when I used the following statement, I would receive an error that I was not allowed to add text to a protected area of the document
ActiveDocument.Bookmarks("bookmark1").Range.Selec
Selection.Text = "test
So I unprotected the document, and all works fine
HOWEVER ..
this document is setup to print data only from forms -- to be used with a preprinted form. If you manually enter text into the bookmark area, the data (only) will print. If I unprotect the document, the bookmark seems to disappear (if manually entering text, or populating from a macro), and the text will not print
What approach should I be taking here
Can I somehow unprotect the doc in vba, populate the fields and then protect again
Or should I be using something different than bookmarks
Thanks
Tro