PageSetup Object
Excel Developer Reference |
Represents the page setup description.
Remarks
The PageSetup object contains all page setup attributes (left margin, bottom margin, paper size, and so on) as properties.
Example
Use the PageSetup property to return a PageSetup object. The following example sets the orientation to landscape mode and then prints the worksheet.
Visual Basic for Applications |
---|
|
The With statement makes it easier and faster to set several properties at the same time. The following example sets all the margins for worksheet one.
Visual Basic for Applications |
---|
|
See Also