SizeWithWindow Property

Microsoft Excel Visual Basic

SizeWithWindow Property

       

True if Microsoft Excel resizes the chart to match the size of the chart sheet window. False if the chart size isn't attached to the window size. Applies only to chart sheets (doesn't apply to embedded charts). Read/write Boolean.

Example

This example sets Chart1 to be sized to its window.

Charts("Chart1").SizeWithWindow = True