Click or drag to resize
DocumentObject Property

Retrieves a value that return automation interface of current document object.

Syntax

[ JavaScript ]

document.getElementById("AceoffixCtrl1").DocumentObject

Remarks

Object type.

The property is read-only. The property has no default value.

Return automation interface of current document object.

This is the important property of AceoffixCtrl. This property is an entry point of VBA (Visual Basic for Applications).

If you open a Word document, then Document stands for an Application.ActiveDocument object in VBA. You can use Javascript or VBScript to control Word document. If you open a Excel document, so Document stands for a Application.ActiveWorkBook object in VBA. You can use Javascript or VBScript to control Excel document.

Example
JavaScript
var activeDoc = document.getElementById("AceoffixCtrl1").DocumentObject; //If current document is Word document, this code can get the ActiveDocument object of Word.

var activeWB = document.getElementById("AceoffixCtrl1").DocumentObject; //If current document is Excel document, this code can get the ActiveWorkBook object of Excel.
See Also