I want to be able to get text from one documents form field and insert it into another document which is a protected form. I can insert the right text using bookmark.range, but the text is preceded with "FORMTEXT". How can I get rid of that?
Here is what I have so far:
ActiveDocument.Unprotect
Set rngRange = ActiveDocument.Bookmarks("Text".Range
rngRange.TextRetrievalMode.IncludeFieldCodes = False
Text_from_first_form = rngRange.Text
Application.Documents.Open FileName:="Filename.doc"
WordBasic.setformresult "Text", Text_from_first_form
Any help would be appreciated.
Thanks,
Elena
Here is what I have so far:
ActiveDocument.Unprotect
Set rngRange = ActiveDocument.Bookmarks("Text".Range
rngRange.TextRetrievalMode.IncludeFieldCodes = False
Text_from_first_form = rngRange.Text
Application.Documents.Open FileName:="Filename.doc"
WordBasic.setformresult "Text", Text_from_first_form
Any help would be appreciated.
Thanks,
Elena