Поделиться через


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

Concepts

Bookmark Object Members

Bookmark Object