Returns the active document automation object, if any.
[ obActiveObject = ] Object.Document
The Document property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ALog |
ALog control |
|
obActiveObject |
Object |
Retrieves a pointer to the object interface of the active document object. See more information regarding the Document object at Microsoft web site WebBrowser control documentation. |
The default is this automation object. This property is read-only at run time.
The following statement retrieves the active document Body tag element object:
objBody = Log.Document.Body
The following statement empty selection from the log:
Log.Document.Selection.Empty()