Syntax

expression.Orientation

expression A variable that represents a PageSetup object.

Example

This example sets Sheet1 to be printed in landscape orientation.

Visual Basic for Applications
Worksheets("Sheet1").PageSetup.Orientation = xlLandscape

See also: