OL2000: CommandBars Not Available from Application Object (230504)
The information in this article applies to:
This article was previously published under Q230504 SYMPTOMS
You use programming code to automate the Microsoft Office CommandBars object model, but the code generates an error when used with Outlook.
CAUSE
Unlike other Office programs, the CommandBars object is not available as a property of the Outlook.Application object. Most CommandBar code examples, including those in the "Working with command bars" section of the Outlook 2000 Visual Basic Reference, were designed for the other Office programs.
RESOLUTION
Outlook implements CommandBars in both folder windows and form windows, so the CommandBars object is accessed through the Explorer and Inspector objects, respectively. Modify your code to include one of these objects, as appropriate.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCES
For additional information about available resources and answers
to commonly asked questions about Microsoft Outlook 2000 solutions,
please see the following article in the Microsoft Knowledge Base: 146636 OL2000: Questions About Custom Forms and Outlook Solutions
Modification Type: | Major | Last Reviewed: | 9/29/2003 |
---|
Keywords: | kbbug kbProgramming KB230504 |
---|
|