Introduction to Developing Smart Documents with VBA [Office 2003 SDK Documentation]
When developing smart documents, you may need to access the host application to either pull values from or push content into the smart document. To do this, you would use the Microsoft® Visual Basic for Applications (VBA) object model for the host application. For information about working with the VBA object model for either Microsoft Office Word 2003 or Microsoft Office Excel 2003, see the VBA Help included with those applications when you installed Office.
However, there are a few object model members that are specific to working with smart documents. The following topics describe these members and how you might use them in your smart document code:
- For information about how to install and identify XML expansion packs on a user's machine, see Working With XML Expansion Packs.
- For information about how to access controls that are part of your smart document, see Accessing Smart Document Controls.
Note Controls that are defined as default controls or that are defined by using actionPertainsToEntireSchema cannot be accessed from the VBA object model. For more information about actionPertainsToEntireSchema, see SmartDocXmlTypeName Property.