CenterVertically Property

Applies To

PageSetup object.

Description

True if the sheet is centered vertically on the page when it's printed. Read/write Boolean.

See Also

CenterHorizontally property.

Example

This example centers Sheet1 vertically when it's printed.

Worksheets("Sheet1").PageSetup.CenterVertically = True