How To Obtain Built-In Constant Values for an Office Application (239930)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Access 2000
- Microsoft Excel 2000
- Microsoft Office Binder 2000
- Microsoft Graph 2000
- Microsoft Outlook 2000
- Microsoft PowerPoint 2000
- Microsoft Word 2000
- Microsoft Access 2002
- Microsoft Excel 2002
- Microsoft Graph 2002
- Microsoft Outlook 2002
- Microsoft PowerPoint 2002
- Microsoft Word 2002
- Microsoft Office Access 2003
- Microsoft Office Excel 2003
- Microsoft Office PowerPoint 2003
- Microsoft Office Outlook 2003
- Microsoft Office Word 2003
This article was previously published under Q239930 SUMMARY
Microsoft Office applications can act as ActiveX Servers. They provide client applications design-time access to an Object library, or type library, that enables client applications to view an Office application's objects, properties, methods, and constants.
You can use late binding in a Visual Basic automation controller to automate an Office application without the need for referencing the Office application's type library. When you use late binding, you need to use the values for built-in constants for the Office application. This article describes how you can programmatically retrieve a list of built-in constants and the equivalent values at run time.
REFERENCESNOTE: Tlbinf32.exe is a file that contains the HTML Help file for the TypeLibInformation object. The Tlbinf32.dll file and the HTML Help file are provided for your reference only, and they are not supported by Microsoft.
For more information about using the TypeLibInformation object, please see the following articles in the Microsoft Knowledge Base:
224331 FILE: tlbinf32.exe : Help Files for tlbinf32.dll
172988 FILE: Programmatically Retrieve the Members of a DLL Class
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAutomation kbhowto KB239930 kbAudDeveloper |
---|
|