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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top