Macro help for searches

C

Colonel Blip

Hello, All!

I am using OL2k3 under W2K.

I would like to write a simple macro that does the following:

Executes a 'Find' (F4 key)
Fills the find box with a word, in my case "Subject:"
and begins the search.

Additionally I would like a macro that simply executes the Find Next feature
(shift+F4) but I hope I can figure that out from the help with the above
code.

Thanks.

Colonel Blip.
E-mail: (e-mail address removed)
 
K

Ken Slovak

You can find the CommandBarControl that matches that command and Execute it
or use SendKeys to send an F4 but you have no access to the settings in Find
so you can't set up a search term. That has to be done manually. You could
set up an AdvancedSearch using WebDAV terms for your search terms but that
can only be done using Outlook 2002 or later.
 
C

Colonel Blip

Hello, Ken!
You wrote on Thu, 20 Jan 2005 10:17:10 -0500:

Guess I'll stick with the brute force approach.

Thanks.

Colonel Blip.
E-mail: (e-mail address removed)

KS> You can find the CommandBarControl that matches that command and
KS> Execute it or use SendKeys to send an F4 but you have no access to the
KS> settings in Find so you can't set up a search term. That has to be done
KS> manually. You could set up an AdvancedSearch using WebDAV terms for
KS> your search terms but that can only be done using Outlook 2002 or
KS> later.
 

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