Compartilhar via


Zoom.Percentage Property

Word Developer Reference

Returns or sets the magnification for a window as a percentage. Read/write Long.

Syntax

expression.Percentage

expression   An expression that returns a Zoom object.

Example

This example switches the active window to normal view and sets the magnification to 80 percent.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow.View
    .Type = wdNormalView
    .Zoom.Percentage = 80
End With

This example increases the magnification of the active window by 10 percent.

Visual Basic for Applications
  Set myZoom = ActiveDocument.ActiveWindow.View.Zoom
myZoom.Percentage = myZoom.Percentage + 10

See Also