Description
Returns the document associated with the object.
Property type
Read-only property
Syntax
Visual Basic |
---|
Public Property Document As Document |
Example
Private Sub DocumentsPropExample()
Dim myDoc As Document
Dim nodocs As Integer
nodocs = Application.Documents.Count
MsgBox "No. of documents = " & nodocs
End Sub