Compartilhar via


View.Zoom Property

Word Developer Reference

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

Syntax

expression.Zoom

expression   An expression that returns one of a View object.

Example

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

Visual Basic for Applications
  Sub wndBig()
    Dim wndBig As Window
For Each wndBig In Windows
    wndBig.View.<strong class="bterm">Zoom</strong>.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.

Visual Basic for Applications
  ActiveDocument.ActiveWindow.View.Zoom.PageFit = wdPageFitBestFit

See Also