View Single Post
  #4  
Old April 6th 07, 07:12 AM posted to microsoft.public.outlook.program_vba
salad
external usenet poster
 
Posts: 27
Default Creating a menu or command button in Outlook

Eric Legault [MVP - Outlook] wrote:
It sounds like you have little programming experience, so this may be a
challenge for you. But what you want to do is fairly easy. All macros that
you code in Outlook can be mapped to a custom button. And the code to move
an item basically involves:


Hi Eric. Instead of reinventing the wheel I believe the Outlook
Organizer Pane will do exactly what I need to do. I wouldn't have to
distribute anything except provide instructions on how to open the
Organizer window, maybe put it on their standard toolbar if it doesn't
already reside there.

I guess you could say I'm a newbie regarding Outlook and haven't fully
explored it's capabilites.

Again, thanks for the link and info you provided.

- capturing the selection with the Explorer.Selection object
- setting a MAPIFolder reference to the desired folder by using the Folders
collection
- calling Item.Move to move the message

However, macros cannot be easily distributed to many users. See this page
for more info:

Distributing Microsoft Outlook VBA Code:
http://www.outlookcode.com/d/distributevba.htm

Ideally, you would need a professional developer to write the code as a COM
Add-In, which can be easily distributed with a setup package.

Ads