This documentation is archived and is not being maintained.

PaperSize Property


This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

expression.PaperSize

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the paper size to legal for Sheet1.

Worksheets("Sheet1").PageSetup.PaperSize = xlPaperLegal
Show: