I know it sounded like a stupid question. How can the bookmark survive
if the text in which it existed has been deleted? But I thought there
might be a kind of bookmark (like the bookmark that pertains to a page,
i.e., it's not based in text) that might survive.
Dim myrange As Range
Set myrange = ActiveDocument.Bookmarks("Test").Range
myrange.Text = ""
ActiveDocument.Bookmarks.Add "Test", myrange
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Thanks, Doug. Instead of deleting all the text while preserving the
bookmark, it deletes all the text including the bookmark, then recreates
the bookmark in the remaining single paragraph mark. I think that's as
close as it's possible to get to what I'm looking for. (It's too
complicated to explain what I needed this for.)
if you wanted the bookmark to contain something else at the end of the
exercise
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.