|
-
Sep 24th, 2005, 11:09 PM
#1
Thread Starter
Junior Member
CommandBars doesn't support property or method
I'm trying desperately to get a COM add-in to work with Outlook. I'm brand new at this and probably doing something fundamentally wrong.
Using VB6 I create a new Add-in. I change absolutely nothing in the code. I use the Add-In Designer and change it to an Outlook 9 add-in and load on startup. Then create the DLL. So far so good.
When I open Outlook 2000, however, it attempts to connect but gets an error 438, "Object doesn't support this property or method" on the line that attempts to get a reference to the CommandBars object.
Set cbrMenu = gobjAppInstance.CommandBars(CBR_NAME)
It never gets the reference and, of course, never creates the button. Should this work? Do I need to do something else before it can reference CommandBars?
I have been fighting with this to the brink of madness. I would be very grateful if someone can help me out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|