TogglePortrait Method

See Also         Example         Applies To

Switches between portrait and landscape page orientations for a document or section.

Syntax

expression.TogglePortrait

expression   Required. An expression that returns a PageSetup object.

Remarks

If the specified sections have different page orientations, an error occurs.