Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ActiveDocument property
Collapse the table of content
Expand the table of content

_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)

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

value = instance.ActiveDocument

The active document is the document with the focus.

If there are no documents open, an error occurs.

Show:
© 2015 Microsoft