Previous Document Next Document

Object Model Reference : Classes : A : Application : Properties : Application.Documents


Application.Documents

Property Documents As Documents

Description

Member of Application

The Documents property returns the collection of all open documents in the application.

The Documents property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.