You can use Microsoft Office tools to examine a component's functionality. In Microsoft Word 2000 or later, for example, you select Macros or Macro (depending on the Word version) from the Tools menu, then choose Visual Basic Editor or Microsoft Script Editor-either works. If neither of these are selectable options at this point, you must use the existing menu items to record a new macro, stop the recording, then go in and edit the new macro you created.
Within the Visual Basic Editor, press F2 or select Object Browser from the View menu. From the Tools menu in the Object Browser, select the Reference option to open the References dialog box. Add a reference to your chosen component. For example, Figure A shows a sample dialog box in which I've added a reference to the Windows Script Host Object Model.
After you add the reference, select your component in the drop-down list at the top of the Object Browser. For example, in the Object Browser that Figure B shows, I selected IWshRuntimeLibrary, which is the internal name for the Windows Script Host (WSH) object model. The Object Browser lists the component's objects in the Classes pane and those objects' methods, properties, and events in the Members of pane. Highlighting a method, property, or event prompts the Object Browser to display the syntax in the pane at the bottom of the Object Browser. For example, as Figure B shows, when you highlight the FileSystemObject object's CreateTextFile method, the syntax for that method appears in the bottom pane. . . .

