Share via


PageSetup.Orientation Property

Excel Developer Reference

Returns or sets a XlPageOrientation value that represents the portrait or landscape printing mode.

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