Word 2000 Insert text into bookmark of Protected document

K

K. Wilder

I've written a little VB 6.0 app that creates a Word 2000 application object
to open any selected Word document.

I want to search for a particular Bookmark and then insert text into it.

I have been able to locate the bookmarks, but since the document is
protected I get an error inserting the text using either .InsertBefore or
..InsertAfter.

Does anyone know how to insert the text into the bookmark and retain the
bookmark?

I can manually unprotect the document and then the program runs fine, but it
still either inserts the text before the bookmark or after it, or replaces
it. I want to keep it.

Any help is appreciated.

Thanks,

King
 
K

K. Wilder

David,

Unfortunately, I won't have access to the password to unprotect it. This is
a third party Word document that my client is using. I trying to create a
automated way of them filling in the forms.

Thanks,

King
 

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