_Application.ActiveDocument Property

Definition

Returns a Document object that represents the active document.

public:
 property Microsoft::Office::Interop::Word::Document ^ ActiveDocument { Microsoft::Office::Interop::Word::Document ^ get(); };
public Microsoft.Office.Interop.Word.Document ActiveDocument { get; }
member this.ActiveDocument : Microsoft.Office.Interop.Word.Document
Public ReadOnly Property ActiveDocument As Document

Property Value

Remarks

The active document is the document with the focus.

If there are no documents open, an error occurs.

Applies to