PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Accessing Search Results (using Find Now in GUI) from VBA-code

Reply

Accessing Search Results (using Find Now in GUI) from VBA-code

 
Thread Tools Rate Thread
Old 30-04-2004, 10:51 AM   #1
=?Utf-8?B?SGVucmlr?=
Guest
 
Posts: n/a
Default Accessing Search Results (using Find Now in GUI) from VBA-code


Hi!

Is there anyone who knows how I could access the search results in a contact folder from VBA-code in Outlook 2003. The user will perform a standard search typing in a name and pressing the Find Now button in the Outlook GUI. The results are then displayed in the Active Explorer. But how do I get the items that is displayed? I can either see which is the active explorers folder and loop through all thoose items, or I could selected some items and loop through thoose. But I just want to loop through thoose items that are displayed/filtered after the search in the GUI, without having to select them first

How can I accomplish this?
Any help is greatly appreciated

/Henrik
  Reply With Quote
Old 30-04-2004, 12:05 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Accessing Search Results (using Find Now in GUI) from VBA-code

You either hve to select them first or use a programmatic search method .

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Henrik" <anonymous@discussions.microsoft.com> wrote in message
news:5B29B0F9-17E8-40F8-BBA0-F7B74F49AD21@microsoft.com...
> Hi!
>
> Is there anyone who knows how I could access the search results in a

contact folder from VBA-code in Outlook 2003. The user will perform a
standard search typing in a name and pressing the Find Now button in the
Outlook GUI. The results are then displayed in the Active Explorer. But how
do I get the items that is displayed? I can either see which is the active
explorers folder and loop through all thoose items, or I could selected some
items and loop through thoose. But I just want to loop through thoose items
that are displayed/filtered after the search in the GUI, without having to
select them first.
>
> How can I accomplish this?
> Any help is greatly appreciated!
>
> /Henrik



  Reply With Quote
Old 03-05-2004, 10:46 AM   #3
=?Utf-8?B?SGVucmlr?=
Guest
 
Posts: n/a
Default Re: Accessing Search Results (using Find Now in GUI) from VBA-code

Hi Sue!

Thank you for your answer. Then I know that I have to find a workaround.

/Henrik
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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