CenterHorizontally Property

Applies To

PageSetup object.

Description

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

See Also

CenterVertically property.

Example

This example centers Sheet1 horizontally when it's printed.

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