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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Simulate Find



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 20th 06, 11:27 AM posted to microsoft.public.outlook.program_vba
dorutzu
external usenet poster
 
Posts: 4
Default Simulate Find

Hi!

I have an Outlook addin with a custom button in a toolbar. When I press
this button, I would like to search for certain mailitems (using
AdvancedSearch), and display them in a list (view)...something similar to
what Find does, but programatically.
Any idea how this could be done (the display I mean...the search works just
fine)?

Thanks,
Doru


  #2  
Old April 20th 06, 02:42 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Simulate Find

The results of a Search object are, oddly enough, stored in a Results
collection. That collection has Count and Item properties that can be used
in a For loop, it also has a full set of the Get functions (GetFirst,
GetLast, GetNext and GetPrevious).

Iterate that collection and display whatever information you want from each
item in the collection in a list or grid or whatever in a custom form you
design.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"dorutzu" wrote in message
...
Hi!

I have an Outlook addin with a custom button in a toolbar. When I press
this button, I would like to search for certain mailitems (using
AdvancedSearch), and display them in a list (view)...something similar to
what Find does, but programatically.
Any idea how this could be done (the display I mean...the search works
just fine)?

Thanks,
Doru


 




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
Can't find server news Outlook Express 3 March 14th 06 03:50 AM
I CANNOT FIND OUTLOOK!! HELP!! schmilary Outlook - General Queries 8 February 18th 06 12:19 AM
How to use Find Now? The Hun Outlook - General Queries 2 February 9th 06 03:41 AM
Find and advance find does not find anything ever Terri Schoerner Outlook - Using Contacts 1 February 1st 06 09:40 PM
2003 calendar's find, doesn't find items created today till tomarr Support7556 Outlook - Calandaring 11 January 20th 06 09:54 PM


All times are GMT +1. The time now is 08:22 PM.


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.