The below doesn't work.
ActiveDocument.Bookmarks("Comments").Range.Text = ""
ActiveDocument.Bookmarks("Comments").Range.Delete
ActiveDocument.Bookmarks("Comments").Range.Cut
Allan Wong
For the above to work, the text needs to be enclosed by the bookmark - take
a look at the following article:
http://www.mvps.org/word/FAQs/MacrosVBA/WorkWithBookmarks.htm
--
Hope this helps.
ibby
Please post replies or follow-ups to the **newsgroup** so that participants
may benefit or contribute.
When you insert text into a bookmark, the bookmark does not contain the
text, you have to redefine the bookmark:
Sub test()
Dim rng As Range
Dim sText As String
sText = "abc"
Set rng = ActiveDocument.Bookmarks("Test").Range
rng = sText
ActiveDocument.Bookmarks.Add ("Test"), rng
End Sub
Now you can change the text by changing sText.
hth, Martin
In article <#V7idZdYBHA.2020@tkmsftngp07>, bu...@singnet.com.sg says...
Regards,
Allan
"Allan Wong" <bu...@singnet.com.sg> wrote in message
news:#V7idZdYBHA.2020@tkmsftngp07...