J
John Shanley
Hi All:
I am trying to create a document where the user must work with entire
sections at a time. I thought I could do it using bookmarks. I am
capturing the content destined for each bookmarked section via a
dialog book and am trying to replace the bookmark's placeholder text.
I've created a bookmark named "OverviewText" and assigned it to the
following placeholder text: "OverTextHere"
I read in Word 97 Macro & VBA Handbook, pg. 490-491 that you can
"change the content of a Bookmark" by using code like the following:
With ActiveDocument.Bookmarks("OverviewText")
.Select
Selection.TypeText myNewOverviewText
End With
While the text is being replaced OK, the bookmark is being deleted. So
I can't come back and use the bookmark again, such as when the user
would need to review and edit it's content.
Am I barking up the wrong tree trying to use bookmarks in an
inappropriate manner?
Any clue about how to accomplish this would be very much appreciated.
TIA
JohnS
I am trying to create a document where the user must work with entire
sections at a time. I thought I could do it using bookmarks. I am
capturing the content destined for each bookmarked section via a
dialog book and am trying to replace the bookmark's placeholder text.
I've created a bookmark named "OverviewText" and assigned it to the
following placeholder text: "OverTextHere"
I read in Word 97 Macro & VBA Handbook, pg. 490-491 that you can
"change the content of a Bookmark" by using code like the following:
With ActiveDocument.Bookmarks("OverviewText")
.Select
Selection.TypeText myNewOverviewText
End With
While the text is being replaced OK, the bookmark is being deleted. So
I can't come back and use the bookmark again, such as when the user
would need to review and edit it's content.
Am I barking up the wrong tree trying to use bookmarks in an
inappropriate manner?
Any clue about how to accomplish this would be very much appreciated.
TIA
JohnS