Zooms Collection Object

Description

A collection of Zoom objects that represent the magnification options for each view (outline, normal, page layout, and so on).

Using the Zooms Collection

Use the Zooms property to return the Zooms collection. The following example sets the zoom percentage for the active window to 100 percent in Normal view.

ActiveWindow.ActivePane.Zooms(wdNormalView).Percentage = 100
The Add method isn't available for the Zooms collection. The Zooms collection includes a single Zoom object for each of the various view types (outline, normal, page layout, and so on). You cannot enumerate the Zooms collection by using a For Each...Next loop.

Use Zooms(index), where index identifies the view type, to return a single Zoom object. The view type specified by index can be one of the following WdViewType constants: wdMasterView, wdNormalView, wdOnlineView, wdOutlineView, wdPageView, or wdPrintPreview. The following example sets the page layout magnification for the active window so that an entire page is visible.

ActiveWindow.ActivePane.Zooms(wdPageView).PageFit = wdPageFitFullPage
You can also use the Zoom property of the View object to return a single Zoom object. The following example sets the zoom percentage for the active window to 110 percent.

ActiveWindow.View.Zoom.Percentage = 110
Properties

Application property, Creator property, Parent property.

Methods

Item method.

See Also

View object.