CenterHorizontally Property

Microsoft Excel Visual Basic

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

Example

This example centers Sheet1 horizontally when it's printed.

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