Skip to content

TextFrame

Nathan Jones edited this page Aug 3, 2019 · 5 revisions

TextFrame

The TextFrame object contains text and it's formatting data.

MSO Model Help Page: TextFrame object

TextFrame Object Hierarchy

HasTextFrame - Can the Shape object even hold text?

MS Object Model Help Page: HasTextFrame Returns whether the specified shape has a text frame. Read-only.

Use the HasTextFrame property to determine if an object has a TextFrame.

PPT.ActiveWindow.Selection.ShapeRange.HasTextFrame 

This expression will return either an msoTrue or msoFalse constant value. In this case msoTrue is equal to -1, which means the shape/object has a TextFrame, and msoFalse is equal to 0 if the shape does not have a TextFrame.

Clone this wiki locally