Selection.Bookmarks property (Word)
Returns a Bookmarks collection that represents all the bookmarks in a document, range, or selection. Read-only.
expression A variable that represents a Selection object.
For information about returning a single member of a collection, see Returning an object from a collection.
This example applies bold formatting to the first range of bookmarked text in the selection.
If Selection.Bookmarks.Count >= 1 Then Selection.Bookmarks(1).Range.Bold = True End If
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.