Share via


Bookmarks.Empty Property

Word Developer Reference

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.

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

See Also