Description
Returns the collection of document objects.
Property type
Read-only property
Syntax
Visual Basic |
---|
Public Property Documents As Documents |
Example
The following example demonstrates how to use the Documents property to return the number of documents in the Document Collection object.
Dim myDoc As Document
Dim nodocs As Integer
nodocs = Application.Documents.Count - 1
MsgBox "No. of documents = " & nodocs
End Sub