Orientation Property [AutoPageSetup]
The Orientation property returns or sets the paper orientation (landscape or portrait) for the plot window. Returns a Long.
Syntax
object.Orientation
object.Orientation = Orientation
Parameter | Type | Description |
Orientation | Long | required, grfPageOrientation |
Example 1
This example demonstrates how to return the page orientation of a document.
Debug.Print PageSetup.Orientation
Example 2
This example demonstrates how to set the page orientation to landscape.
PageSetup.Orientation = grfLandscape
Used by: AutoPageSetup object