Order Property

Applies To

PageSetup object, Trendline object.

Description

PageSetup object: Returns or sets the order that Microsoft Excel uses to number pages when printing a large worksheet. Can be one of the following XlOrder constants: xlDownThenOver or xlOverThenDown. Applies only to worksheets. Read/write Long.

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

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