title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Selection.StoryType property (Word) |
vbawd10.chm158662663 |
|
|
17709b74-ea6b-9d58-885d-01e6b2ddac55 |
06/08/2017 |
medium |
Returns the story type for the specified selection. Read-only WdStoryType.
expression. StoryType
expression Required. A variable that represents a Selection object.
This example returns the story type of the selection.
story = Selection.StoryType
This example closes the footnote pane if the selection is contained in the footnote story.
ActiveDocument.ActiveWindow.View.Type = wdNormalView
If Selection.StoryType = wdFootnotesStory Then _
ActiveDocument.ActiveWindow.ActivePane.Close
[!includeSupport and feedback]