|
-
Jan 16th, 2004, 09:24 AM
#1
Thread Starter
Junior Member
Write a string to a field in a protected word doc
I've coded up a routine that opens up a protected word document containing text entry fields. The problem is when i try to write a string to the entry field. At the moment i move to the bookmark then try to enter text to the current selection.
I get an error saying that the program is trying to write to a protected area of the document.
<vb>
wSourceDoc.GoTo What:=wdGoToBookmark,name:="CompanyProfile"
wApp.Selection.TypeText Text:="my string"
</vb>
I just want to set focus to the field then populate the field with the text string.
any ideas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|