Hi Doug,
Ok, forget Ibby. Do you concede that it is humanly possible for a person,
not yourself of course, to create a document that has a dispersion of
bookmarks some enclosing text and some with a zero length range and that
these bookmarks of the second type have at least, by a small segment of the
population, been referred to as "placeholder bookmarks?"
This person then makes the following request:
<I need to Delete All Bookmarks at once in a word document - it is not a
template
A very knowledgeable person replies.
If you want to delete the bookmarks and their contents, then use:
Dim i As Long
With ActiveDocument
For i = .Bookmarks.Count To 1 Step -1
.Bookmarks(i).Range.Delete
Next i
End With
The person ponders and decides yes I do want to delete the bookmarks and
their contents. He or she executes the code and thousands of bookmarks
vanish in the blink of an eye. File>Save quit Word and off to catch the
morning train.
Can you imagine the dismay when that person realizes later that many of the
bookmarks, the placeholder type, are still present and not only that but a
single adjacent character has been deleted instead?
Cheers