A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Newbie question to CommandBars



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 9th 06, 09:56 PM posted to microsoft.public.outlook.program_vba
Claus Schiroky
external usenet poster
 
Posts: 1
Default Newbie question to CommandBars

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


Ads
  #2  
Old May 10th 06, 06:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Newbie question to CommandBars

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?...6&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

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Newbie Needs Help [email protected] Outlook - Using Forms 3 May 9th 06 07:28 PM
Outlook commandbars Radiohead Add-ins for Outlook 1 January 25th 06 02:35 PM
how to use the CommandBars Collection Jim B Outlook - Using Forms 0 January 22nd 06 12:46 AM
Newbie question regarding corespondance Raffi Bearmant Outlook - General Queries 1 January 11th 06 10:37 AM
Newbie needs help Alan Hurley Outlook - General Queries 2 January 10th 06 10:07 AM


All times are GMT +1. The time now is 03:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.