Get user selected folder from scripts.

R

RealCat

Hi.

I want to create a simple VBA macro which moves newly arrived messages
into a folder if some condition is met. The problem here is, the
destination folder is not fixed, and I want to let users choose it.

There's a "Move Folder" dialog in Outlook which lets users choose a
folder. I would like to use a similar method. IS the "Move Folder"
dialog programatically controllable, so that I can use it as some sort
of "folder selection dialog"? If so, how? Thank you for any helps.
 
K

Ken Slovak - [MVP - Outlook]

The NameSpace.PickFolder() method is the select folders dialog. You can't
program it other than showing it and testing the return MAPIFolder object to
see if it's null or a folder type that's not appropriate, but that's your
best choice of dialogs.
 

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

Top