Setting the text for a field

B

Brian Mitchell

This might be the wrong group, if so I apologize.

I am using VB.NET and the Word class to access word documents. My documents
were created as word forms with several custom textboxes (all with bookmarks
names).

I can read the text just fine, but when I try to set them I get an error:
"This method or property is not available because the object refers to a
protected area of the document."

If I unprotect the document (the .DOT) I get another error telling me the
bookmark cannot be deleted (even though I am not trying to delete it).

I am using the document.bookmarks.item.range.text property to set it. Am I
doing something wrong or is there another way to set the text?

Thanks!!
 

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