Share via


Document.ActiveView Property

Publisher Developer Reference

Returns a View object representing the view attributes for the specified document. Read-only.

Syntax

expression.ActiveView

expression   A variable that represents a Document object.

Return Value
View

Example

The following example sets the active publication zoom to fill the screen.

Visual Basic for Applications
  Sub SetActiveZoom()
    Dim viewTemp As View
ActiveDocument.Pages(1).Shapes.AddShape 1, 10, 10, 50, 50
Set viewTemp = ActiveDocument.<strong class="bterm">ActiveView</strong>
ActiveDocument.Pages(1).Shapes(1).Select
viewTemp.Zoom = pbZoomFitSelection

End Sub

See Also