Re-Post: macro to extract subject line and "paste" in advanced search

S

stef

OL 2002 SP3
Win XP HE SP1

Follow-up to: microsoft.public.outlook.program_vba

Can anyone help with this?

Hi,
I need to create some advanced searches that will look into specific
email sub-folders "A" and "C", for example.
I am planning on creating the advanced search, save it locally and put
some icons in a custom toolbar 4 quick access.
Can anyone help me with the 2nd part of this project which would be to
extract the subject line of an email (e.g. "our telephone conversation
of today") and paste it or use it in the Advanced Find search feature
under advanced tab: conversation is (exactly) "our telephone
conversation of today".
I am trying to replicate the "search all related emails" that appears in
yellow on top of email messages headers in preview pane in your inbox
once you have replied to a message ("you replied on 8/2/2006 10:00 AM.
Click here to find all related messages")--a default feature of OL which
unfortunately ONLY searches in the current folder (in my case Inbox),
Inbox, Drafts, Sent Items. I would like to add sub-folders "A" and "C"
to that list or ONLY have sub-folders "A" and "C".
I am open to any other suggestions as to how accomplish this but I was
thinking that since that feature does not seem to be customizable (at
least that's what I am told--but could be subject to registry hack
perhaps?), perhaps a VBA macro could be the only solution.
Thanks for ur expert advice, u geniuses out there!
 
K

Ken Slovak - [MVP - Outlook]

You can't access that part of the user interface from code.

First of all, what version of Outlook? If this is Outlook 2003 then just
create a search folder using that search term for the subject and set your
folders to search. That's by far the easiest way and requires no coding.

Otherwise just create your searches as you want and save the search for
re-use.
 
S

stef

Ken said:
You can't access that part of the user interface from code.

First of all, what version of Outlook? If this is Outlook 2003 then just
create a search folder using that search term for the subject and set
your folders to search. That's by far the easiest way and requires no
coding.

Otherwise just create your searches as you want and save the search for
re-use.
Ken,
Tx for your reply.
(OL 2002 SP3, Win XP HE)
Unfortunately, I don't have the custom search folders that are available
in OL 2003.
Creating the custom advanced searches is OK but not ideal as, while I
CAN define the search folders that way, I cannot automate the
"Conversation is (exactly)" part, which ideally contains the subject
threads of the emails one is looking for.
Thus, it really isn't any improvement on using the regular built-in
feature of "Click Here to Find Related Messages" and stopping it when it
opens to make the changes in folders searched and then searching again.
Probably the same number of clicks or actions to get what I want....


Incidentally, how do I create a custom button on the toolbar for those
custom searches?
 
K

Ken Slovak - [MVP - Outlook]

I don't think you can load a saved search that way as far as I know.
 
S

stef

Ken said:
I don't think you can load a saved search that way as far as I know.
I guess this would be a good reason to switch to 2003.... But only for
the "search folders" seems a bit costly.
 
K

Ken Slovak - [MVP - Outlook]

Outlook 2003 is a lot less buggy than Outlook 2002, at least for coders. And
it has a nicer UI IMHO.
 

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