Name

pagesetup.ChartSize [= setting]

Synopsis

Sets or returns an xlObjectSize constant that determines how a chart is sized; causes an error for worksheet objects. Can be one of the following settings:

xlFitToPage

Prints the chart as large as possible, while retaining the chart’s height-to-width ratio.

xlFullPage

Prints the chart to fit the page, adjusting the height-to-width ratio (this is the default).

xlScreenSize

Prints the chart the same size as it appears on the screen.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.