A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to programmatically select a outlook search folder?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 18th 09, 10:29 AM posted to microsoft.public.outlook.program_addins
madhavi
external usenet poster
 
Posts: 12
Default How to programmatically select a outlook search folder?


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

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

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


--
madhavi
http://forums.slipstick.com

Ads
  #2  
Old September 18th 09, 03:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to programmatically select a outlook search folder?

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"madhavi" madhavi.3ypcsa@invalid wrote in message
news:madhavi.3ypcsa@invalid...

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

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

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


--
madhavi
http://forums.slipstick.com


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically select an item with a particular Subject a3kumarz Outlook and VBA 2 November 4th 08 12:01 AM
Outlook 2007 - search SELECT NAMES or SEARCH ADDRESS BOOK TubbyLady Outlook - Using Contacts 10 June 2nd 08 10:57 AM
Select a contact programmatically naveed Outlook and VBA 3 February 21st 07 06:09 AM
Select a contact programmatically naveed Outlook - Using Contacts 2 February 21st 07 12:56 AM
How to select the Internet account programmatically? James Outlook and VBA 1 October 30th 06 05:00 AM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.