API Documentation > CorelDRAW > 2025-v26 > Application > IVGApplication
Application.Documents property
Gets the collection of documents open in the application
Syntax:
Property Get Documents() As Documents
Remarks:
The Documents property returns the collection of all open documents in the application.
Examples:
The following VBA example checks for open documents. If a document is open, text is added and if there is no open document, a message displays in a message box.
Sub ApplicationDocument()
If Documents.Count > 0 Then
  ActiveLayer.CreateArtisticText 0, 0, "Text"
Else
  MsgBox " There is no document open."
End If 
End Sub