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