API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.ActivePage property
Returns the active page of the current document
Syntax:
Property Get ActivePage() As Page
Remarks:
The ActivePage property represents the active page of the current document.
Examples:
The following VBA example shows the number and name of the current page in the first open document.
Sub Test()
Dim d As Document
Set d = Documents(1)
MsgBox "Current page is " & d.ActivePage.Index & " (" & d.ActivePage.Name & ")" 
End Sub