Previous Document Next Document

Object Model Reference : Classes : V : Views : Methods : Views.AddActiveView


Views.AddActiveView

Function AddActiveView(Name As String) As View

Description

Member of Views

The AddActiveView method adds the current view to a collection.

Parameter
Description
Name
Specifies the name of the new view

VBA example

The following VBA example adds five views to the collection and increments the zoom level by 25 for each view.

Sub Test()
 Dim intCounter As Integer
 For intCounter = 1 To 5
  ActiveDocument.Views.AddActiveView "Test" & intCounter
  ActiveDocument.ActiveWindow.ActiveView.Zoom = (intCounter * 25)
 Next intCounter
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.