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