M
mark
Hi,
I'm trying to insert an AutoText into a bookmark but retain the bookmark.
I've looked at previous posts and can see how to do text but can't work out
how to do it for AutoText.
The basic code for text that I'm trying to amend is
Dim bmRange As Range
Set bmRange = ActiveDocument.Bookmarks("myBookmark").Range
bmRange.Text = "Inserted Text"
ActiveDocument.Bookmarks.Add _
Name:="myBookmark", _
Range:=bmRange
I assume that what i need to do is somehow set "bmRange.Text" to the AutoText
when i've tried this i get the name of the AutoText as text instead of the
actual AutoText. I aslo would like to use a graphic AutoText.
I'm trying to insert an AutoText into a bookmark but retain the bookmark.
I've looked at previous posts and can see how to do text but can't work out
how to do it for AutoText.
The basic code for text that I'm trying to amend is
Dim bmRange As Range
Set bmRange = ActiveDocument.Bookmarks("myBookmark").Range
bmRange.Text = "Inserted Text"
ActiveDocument.Bookmarks.Add _
Name:="myBookmark", _
Range:=bmRange
I assume that what i need to do is somehow set "bmRange.Text" to the AutoText
when i've tried this i get the name of the AutoText as text instead of the
actual AutoText. I aslo would like to use a graphic AutoText.