Adobe InDesign CS4 Scripting Tutorial
Visual
To view the object model using Visual Basic for Applications from Microsoft Excel, follow these steps:
Basic for
Applica-
1. Start Excel.
tions
2. Choose Tools > Macros > Visual Basic Editor. Excel displays the Visual Basic Editor window.
3. Choose Tools > References. The Visual Basic Editor displays the Add References dialog box:
4. From the list of available references, select Adobe InDesign CS4 Type Library option, and click Select.
Visual Basic adds the reference to the Selected Components list. If the library does not appear in the
list of available references, click Browse and locate and select the
file, which usually is in
Data\Adobe\InDesign\Version 6.0\Scripting Support\
Once you find the file, click OK to add the reference to your project.
5. Choose View > Object Browser. The Visual Basic Editor displays the Object Browser window.
6. From the Libraries pop-up menu, choose InDesign. The Visual Basic Editor displays a list of the objects
in the InDesign object library.
7. Click an object name. The Visual Basic Editor displays the properties and methods of the object. For
more information on a property or method, select the item; the Visual Basic Editor displays the defini-
tion of the item at the bottom of the Object Browser window:
~:\Documents and Settings\
Scripting and the InDesign object model 23
Resources for Visual Basic.tlb
\Application
(where
is your user name).