TextFrame.AutoMargins property (Excel)

Returns or sets whether Excel automatically calculates text frame margins. Read/write.

Syntax

expression.AutoMargins

expression A variable that represents a TextFrame object.

Return value

Boolean

Remarks

True if Excel automatically calculates text frame margins; otherwise, False.

When this property is True, the MarginLeft, MarginRight, MarginTop, and MarginBottom properties are ignored.

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.