Stories Collection

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Document
Aa662077.parchild(en-us,office.10).gifStories
Aa662077.space(en-us,office.10).gifAa662077.parchild(en-us,office.10).gifStory

Represents all the text in a publication.

Using the Stories collection

Use the Stories property of a Document object to return a Stories collection. Use the Item method of the Stories collection to access individual Story objects.

The Stories collection enables efficient access to text in a publication. A simple loop through the Stories collection can scan all text in text frames or tables without the need to search each shape on every page of a publication.

The Stories collection contains one Story object for each unlinked text frame, each chain of linked text frames, and each table in a publication. Text in WordArt frames, OLE objects, and pictures are not included in the Stories collection.

This example assigns the first story in the active publication to an object variable.

  Dim stFirst As Story

stFirst = Application.ActiveDocument.Stories(1)