Novice writing first add in

S

Susan Lammi

I am experienced in VBA but never used VB6. I am now tring to write a Com
Addin for Outlook.
The purpose of the AddIn is to place a custom menu with 2 submenus each with
their own actions
submenu 1 looks for mail in the Inbox with a specific Subject and saves the
attachments in a specific Windows folder.

I have written these procedures successfully as Macros but now want to make
this an Add In
I have two procedures written ( the 2nd menu item is not yet enabled)

BTCommandBars() which adds the appropriate menus
BTProcessFiles() which is the Action for the first menu item

I downloaded and installed the Com AddIn Template from Micro Eye, Inc.
Created a Project for my AddIn called BTProcessMail
I added my procedures and everything compiles ok
The AddIn loads in Outlook successfully but does nothing
I'm sure it's because my code (either/both)
1. needs to be altered
2. needs to be called somehow on startup

Now I'm lost....
Be gentle I'm a real novice in VB6
 
H

Harry Whitehouse

Susan -- I'm far from an expert, but there are a number of registry entries
you need to establish before the addin will run. Some are more or less
routine (there is an addin key in the Outlook section of the registry).
Others (which I'm still learning about) have to do with the security model.
See my other messages right around yours -- I responded to one of my own
posts with some interesting links.

Harry
 
K

Ken Slovak - [MVP - Outlook]

If you run the unaltered ItemsCB COM addin does it run and produce the
buttons?

Post some of your code for the button creating routine. Also, did you
declare whatever button you are creating using a WithEvents
declaration as illustrated in ItemsCB?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 

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