How to programmatically select a outlook search folder?

M

madhavi

Actually I need to have a window, where user can enter some creteria fo
search and on click of search, results need to be displayed in th
folder view pane.
Any ideas on how to do this?

I thought of using advancesearch of application, so that it create
search folder.
So I need to select the search folder programmatically.

Any help on how to approach /solve this will be helpful
 
K

Ken Slovak - [MVP - Outlook]

AdvancedSearch() returns a Search object which has a Save() method that
returns a MAPIFolder object. That's how to get the reference you need. If
you intend to repeat the process make sure to store the folder EntryID or
delete the search folder when done with it.
 

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