Help Creating an Outlook Add-In

  • Thread starter Alastair MacFarlane
  • Start date
A

Alastair MacFarlane

Dear All

I am using the following: Outlook 2000 with Office 97. I am trying to create
an Outlook 2000 add-in in visual basic 6 that has the following two variables
WithEvents declared:

Dim WithEvents oMyCB As Office.CommandBarButton
Dim WithEvents oResetCB As Office.CommandBarButton

When I try running the project I get the error: "Object does not source
automation events", which I understand to mean that the 97 object library
cannot create a menubar which reponds to me selecting the menu item in
Outlook 2000.

Is there any way round this problem?

Thanks again...

Alastair MacFarlane
 
S

Sue Mosher [MVP-Outlook]

You would need to have a reference to the Office 9.0 Object Library in your project.
 
A

Alastair MacFarlane

Sue,

Thanks for the reply. Does that mean that I could register the Office 9.0
Object Library on my pc and this would work? Do I really need the full Office
package? Is there any other way that I can get an add-in to work on-demand?

Thanks again.

Alastair MacFarlane
 
S

Sue Mosher [MVP-Outlook]

If you have installed Outlook 2000 on the machine, the Office 9.0 library should already be available as msoutl.olb in the same folder where you installed Outlook 2000.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

Alastair MacFarlane

Sue,

Sorry to seem a wee bit dense, but do I not need the Office 9.0 object
library and surely I will need Office 2000 and not just a part of the suite.
When I look at the project references in VB, I don't see Office 9.0 object
library. I am confused.

Thanks again.

Alastair MacFarlane
 
S

Sue Mosher [MVP-Outlook]

Office 9.0 = 2000. You will need to add that reference. Because it's common to all Office apps, it should be there even though you've installed only Outlook 2000. Did you do what I suggested and look in the folder where you installed Outlook 2000 to find msoutl.olb?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top