Syntax
GetBookmark$(Name$)
Remarks
Returns the text (unformatted) marked by the specified bookmark. If Name$ is not the name of a bookmark in the active document, GetBookmark$() returns an empty string ("").
Examples
This example sets the variable first$ to the text of the first bookmark in the document:
first$ = GetBookmark$(BookmarkName$(1))
The following example sets the variable paratext$ to the text of the paragraph containing the insertion point:
paratext$ = GetBookmark$("\Para")
The bookmark " \ Para" is one of several predefined bookmarks that Word defines and updates automatically. For more information, see "Operators and Predefined Bookmarks" later in this part.
See Also
BookmarkName$(), CountBookmarks(), EditBookmark