Bookmark.Empty property (Word)

True if the specified bookmark is empty. Read-only Boolean.

Syntax

expression. Empty

expression A variable that represents a 'Bookmarks' object.

Remarks

An empty bookmark marks a location (a collapsed selection); it doesn't mark any text. An error occurs if the specified bookmark doesn't exist. Use the Exists property to determine whether the bookmark exists.

Example

This example determines whether the bookmark named "temp" exists and whether it is empty.

If ActiveDocument.Bookmarks.Exists("temp") = True Then 
 If ActiveDocument.Bookmarks("temp").Empty = True Then _ 
 MsgBox "The Temp bookmark is empty" 
End If

See also

Bookmark 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.