API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.Name property
Returns or specifies the name of the VBA object for the current document
Syntax:
Property Get Name() As String
Property Let Name(ByVal Value As String)
Remarks:
The Name property returns or specifies the name of the VBA object for the current document. In CorelDRAW, this name is always Thisdocument unless changed by the user.
Examples:
The following VBA example displays the name of the VBA project in a message box.
Sub DocName()
MsgBox ActiveDocument.Name 
End Sub