View Single Post
  #4  
Old March 24th 09, 05:08 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Item Save and Saveas events

Not a menu click event, but the actual CommandBarButton objects that are
accessed from the menus/toolbars. So you need to instantiate a button
object, declared WithEvents for VB/VBA, representing say File,Save in the
Inspector menus. Then the same for File, SaveAs. And so on for every
possible way to perform those actions. You will need the id properties of
the buttons to grab them. Those can be picked up from a tool like
OutlookSpy.

There are plenty of code samples for using CommandBars.FindControl, which is
what you'd be using. It's up to you to find and grab all relevant
CommandBarButton objects.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
I tried to capture the event for menu click but could not make it. Is there
any example available. I tried those which are in outlookcode.com but not
mentioned clearly


Ads