CenterHorizontally Property

Applies To

PageSetup Object.

Description

True if the sheet is centered horizontally on the page. Read-write.

See Also

CenterVertically Property.

Example

This example centers Sheet1 horizontally when the worksheet is printed.


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