Programmer's Guide > Using the AOM > Using VBScript to Access the AOM > Sample VBScript Code
  
Sample VBScript Code
Sample VBScript code that uses the VBScript AOM interface is included in the Arbortext-path\samples\vbscript directory. The readme.txt file in this directory provides a description of the sample code and instructions for invoking the sample scripts. Examples show how to use the DOM to manipulate the active document and register DOM event handlers. There are two samples, commdlg.vbs and graphic-browser.vbs, which show how to use COM to launch and communicate with Microsoft Word and Microsoft Excel. The VBScript examples are ported from the corresponding JScript samples of the same name.