A button to move selected message from one public folder to another

  • Thread starter Thread starter Domen Ferbar
  • Start date Start date
D

Domen Ferbar

Hi all!

I am looking for a way to add a button to Outlook toolbar that will move
selected message from one public folder to another one. I know I can right
click it and then select the appropriate folder, but this just leads into to
many errors with my users.
 
Do you have an existing macro that you want to map to a toolbar? Or are you
looking to automate the actions that you have described?

If the latter, you can get MailItem or other objects from the selected
message(s) by using the Explorer.Selection property. You can also use the
NameSpace.PickFolder method (which launches a form to choose a folder from
the hierarchy) to obtain a MAPIFolder object that you can then pass as an
argument to the MailItem.Move method.
 
Back
Top