PageSetup.FitToPagesTall Property (Excel)

Returns or sets the number of pages tall the worksheet will be scaled to when it's printed. Applies only to worksheets. Read/write Variant.

Syntax

expression .FitToPagesTall

expression A variable that represents a PageSetup object.

Remarks

If this property is False, Microsoft Excel scales the worksheet according to the FitToPagesWide property.

If the Zoom property is True, the FitToPagesTall property is ignored.

Example

This example causes Microsoft Excel to print Sheet1 exactly one page tall and wide.

With Worksheets("Sheet1").PageSetup 
 .Zoom = False 
 .FitToPagesTall = 1 
 .FitToPagesWide = 1 
End With

See Also

Concepts

PageSetup Object

PageSetup Object Members