Object Model Reference : Classes : A : Application : Properties : Application.Documents |
Property Documents As Documents
Member of Application
The Documents property returns the collection of all open documents in the application.
The Documents property returns a read-only value.
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 |
Copyright 2013 Corel Corporation. All rights reserved.