Bookmarks.Exists method (Word)

Determines whether the specified bookmark exists. Returns True if the bookmark exists.

Syntax

expression. Exists( _Name_ )

expression A variable that represents a 'Bookmarks' object.

Parameters

Name Required/Optional Data type Description
Name Required String A bookmark name than can not include more than 40 characters or more than one word.

Example

This example determines whether the bookmark named "start" exists in the active document. If the bookmark exists, it is deleted.

If ActiveDocument.Bookmarks.Exists("start") = True Then 
 ActiveDocument.Bookmarks("start").Delete 
End If

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.