Share via


ClearBookmark Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Removes all unnamed bookmarks on the current line.

Syntax

object**.ClearBookmark**

Parameters

object

An expression that evaluates to a TextSelection object.

Remarks

The ClearBookmark method does not remove all unnamed bookmarks in a document. To remove all unnamed bookmarks, use the ClearBookmarks method.

Example

The following example removes all unnamed bookmarks on the current line in the current selection:

ActiveDocument.Selection.ClearBookmark

See Also   NextBookmark method, PreviousBookmark method, SetBookmark method.