ActiveDocument Property Example
The following statement returns the ActiveDocument object for the Application object.
myDoc = Application.ActiveDocument
The following statement returns the ActiveDocument object for the PageWindow object.
myDoc = Application.WebWindows(0).PageWindows(0).ActiveDocument