Share via


_Application.ActiveDocument Property

Returns a Document object that represents the active document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property ActiveDocument As Document
    Get
'Usage
Dim instance As _Application
Dim value As Document

value = instance.ActiveDocument
Document ActiveDocument { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Document

Remarks

The active document is the document with the focus.

If there are no documents open, an error occurs.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace