Bookmarks.Item method (Word)

Returns an individual Bookmark object in a collection.

Syntax

expression.Item (Index)

expression Required. A variable that represents a 'Bookmarks' collection.

Parameters

Name Required/Optional Data type Description
Index Required Variant The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.

Return value

Bookmark

Example

This example selects the bookmark named "temp" in the active document.

Sub BookmarkItem() 
 If ActiveDocument.Bookmarks.Exists("temp") = True Then 
 ActiveDocument.Bookmarks.Item("temp").Select 
 End If 
End Sub

See also

Bookmarks Collection 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.