PageSetup.CenterVertically Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .CenterVertically

expression A variable that represents a PageSetup object.

This example centers Sheet1 vertically when it's printed.

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