Newbie question to CommandBars

  • Thread starter Thread starter Claus Schiroky
  • Start date Start date
C

Claus Schiroky

Hi there,

ok, I'm working with Outlook 2003 SP2 and I'd like to add a custom button to
every existing an new mail item. As far as I know here I have to deal with
the ActiveInspector? But basicly I'm searching for a sample vba code for
Outlook that shows me how to do?

Cheers,

Claus Schiroky
 
Am Tue, 9 May 2006 22:56:31 +0200 schrieb Claus Schiroky:

Claus, this sample shows how to add a bar with one button to an Explorer.

http://www.vboffice.net/sample.html?mnu=2&smp=16&cmd=showitem

Instead of calling the CreateCommandBarButton function from within
Application_Startup you need to call it from the NewInspector event.

In that event check if Inspector.CurrentItem is a MailItem and then call
CreateCommandBarButton Inspector.CommandBars
 
Back
Top