Table of contents
TOC
Collapse the table of content
Expand the table of content

TextFrame.Story Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a Story object that represents the story properties in a text range.

Syntax

expression. Story

_expression_A variable that represents a TextFrame object.

Example

This example returns the story in the selected text range and, if it is in a text frame, inserts text into the text range.

Sub AddTextToStory() 
 With Selection.TextRange.Story 
 If .HasTextFrame Then 
 .TextRange.InsertAfter NewText:=vbLf &; "This is a test." 
 End If 
 End With 
End Sub
© 2018 Microsoft