API Documentation > CorelDRAW > 2025-v26 > View > IVGView
View.Activate method
Activates the view
Syntax:
Sub Activate()
Remarks:
The Activate method makes a view active in a document.
Examples:
The following VBA example creates and activates a view.
Sub Test()
Dim Vw As View
Dim intCounter As Integer
Set Vw = ActiveDocument.Views.AddActiveView("Test1")
Vw.Activate
Set Vw = Nothing 
End Sub