Selection.Bookmarks Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Bookmarks collection that represents all the bookmarks in a document, range, or selection. Read-only.

expression .Bookmarks

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