Bookmark.StoryType property (Word)
Returns the story type for the specified range, selection, or bookmark. Read-only WdStoryType.
Syntax
expression.StoryType
expression Required. A variable that represents a Bookmark object.
Example
This example selects the bookmark named "temp" if the bookmark is contained in the main story of the active document.
If ActiveDocument.Bookmarks.Exists("temp") = True Then
Set myBookmark = ActiveDocument.Bookmarks("temp")
If myBookmark.StoryType = wdMainTextStory _
Then myBookmark.Select
End If
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.