Document.ActiveView property (Publisher)
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.
Sub SetActiveZoom()
Dim viewTemp As View
ActiveDocument.Pages(1).Shapes.AddShape 1, 10, 10, 50, 50
Set viewTemp = ActiveDocument.ActiveView
ActiveDocument.Pages(1).Shapes(1).Select
viewTemp.Zoom = pbZoomFitSelection
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.