Order Property

Microsoft Excel Visual Basic

Show All

Order Property

       

Order property as it applies to the PageSetup object.

Returns or sets the order that Microsoft Excel uses to number pages when printing a large worksheet. Read/write XlOrder.

XlOrder can be one of these XlOrder constants.
xlDownThenOver
xlOverThenDown

expression.Order

expression   Required. An expression that returns one of the above objects.

 

Order property as it applies to the Trendline object.

Returns or sets the trendline order (an integer greater than 1) when the trendline type is xlPolynomial. Read/write Long.

expression.Order

expression   Required. An expression that returns one of the above objects.

 

Example

This example breaks Sheet1 into pages when the worksheet is printed. Numbering and printing proceed from the first page to the pages to the right, and then move down and continue printing across the sheet.

Worksheets("Sheet1").PageSetup.Order = xlOverThenDown