Share via


Zoom Property

Zoom Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns a Zoom object that represents the magnification for the specified view.

expression.Zoom

expression   Required. An expression that returns one of a View object.

Example

This example changes the zoom percentage of each open window to 125 percent.

  Sub wndBig()
    Dim wndBig As Window

    For Each wndBig In Windows
        wndBig.View.Zoom.Percentage = 125
    Next wndBig
End Sub

This example changes the zoom percentage of the active window so that the entire width of the text is visible.

  ActiveDocument.ActiveWindow.View.Zoom.PageFit = wdPageFitBestFit