Selection.Bookmarks Property

Word Developer Reference

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.

Visual Basic for Applications
  If Selection.Bookmarks.Count >= 1 Then
    Selection.Bookmarks(1).Range.Bold = True
End If

See Also