Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 998 Bytes

Word.Selection.StoryType.md

File metadata and controls

52 lines (30 loc) · 998 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.StoryType property (Word)
vbawd10.chm158662663
vbawd10.chm158662663
Word.Selection.StoryType
17709b74-ea6b-9d58-885d-01e6b2ddac55
06/08/2017
medium

Selection.StoryType property (Word)

Returns the story type for the specified selection. Read-only WdStoryType.

Syntax

expression. StoryType

expression Required. A variable that represents a Selection object.

Example

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

See also

Selection Object

[!includeSupport and feedback]