AutoMargins Property Example

This example causes Microsoft Excel to automatically calculate text frame margins for text in shape one.

Worksheets(1).Shapes(1).TextFrame.AutoMargins = True