View Single Post
  #2  
Old April 5th 07, 08:38 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Creating a menu or command button in Outlook

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:

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

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"salad" wrote:

I was wondering if it is possible to put a command button or menu item
in Outlook. The caption read something like "File It". Then when
someone has an email to be filed, they press the button and it moves
that message to a specified folder that will be a public/shared folder.
There will never be more than that one folder and will always be a
specified name.

If it can be done, would it be pretty easy to create? And once created,
can the code to do the process be distributed easily to other users of
Outlook? IOW, are there installation scripts that need to be created
for putting it on each users machine?







Ads