I have a little experience of VBA (from Excel) but I'm struggling with a Word 97 issue and properties of a Bookmark.
I want to be able to change the Text found at a known Bookmark (called "Doc_Ref" from "Initial Text" to some text the user types in.
What I'm trying for is as follows, the InputBox bit is okay it's the next line that doesn't work.
I've also tried
So can anyone tell me what the property of the Document / Bookmark is that I change to alter the text pleas
TIA
Jason
I want to be able to change the Text found at a known Bookmark (called "Doc_Ref" from "Initial Text" to some text the user types in.
What I'm trying for is as follows, the InputBox bit is okay it's the next line that doesn't work.
Code:
Sub ...
strNewText = InputBox("Enter Document Ref")
Documents("Test_Doc").Bookmarks("Doc_Ref").Value = strNewText
End Sub
Code:
Documents("Test_Doc").Bookmarks("Doc_Ref").Text = strNewText
TIA
Jason