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.