_Application.ActiveDocument Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.