TextFrame.Overflowing property (Publisher)
Indicates whether the text frame contains more text than can fit into the text frame. Read-only.
Syntax
expression.Overflowing
expression A variable that represents a TextFrame object.
Return value
MsoTriState
Remarks
The Overflowing property value can be one of the MsoTriState constants declared in the Microsoft Office type library.
Example
This example increases the height of the selected text frame if it contains overflowing text.
Sub IncreaseTextBoxHeight()
With Selection.ShapeRange.TextFrame
If .Overflowing = msoTrue Then
Do
.Parent.Height = .Parent.Height + 36
Loop Until .Overflowing = msoFalse
End If
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.