Selection.Bookmarks property (Word)

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

Syntax

expression. Bookmarks

expression A variable that represents a Selection object.

Remarks

For information about returning a single member of a collection, see Returning an object from a collection.

Example

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

See also

Selection Object

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.