View Single Post
  #3  
Old April 5th 07, 09:08 PM 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.


Yes and no. Over 20 years programming but 0 minutes programming Outlook.

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:

- 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.

Thanks for the link. I should think that process to create the function
would be minimal, the distribution process a potential headache. I'd
not like to overwrite somebody's existing macros.

Good advice.
Ads