View Single Post
  #2  
Old January 1st 10, 09:06 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Open Advanced Search Dialog

What you want can't be done. The best you could do probably would be to use
CommandBars techniques to execute the menu/toolbar item that displays the
Advanced Find dialog. The Outlook object model does not, however, provide a
way to preset any of the options in that dialog (although it might be done
with a SendKeys kludge -- not a solution I'd ever give to users).

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"progger" progger.444o0y@invalid wrote in message
newsrogger.444o0y@invalid...

Hi

I would like to open the "Advanced Find"-Dialog from within Outlook
VBA.
If possible I would also like to already set some search parameters
(e.g. the folder to search in, to not only search in subject fields but
in regularly used textfields), so the user only has to type some other
parameters and can then start searching.
I know the function Application.AdvancedSearch(...), but I would really
like to open the Outlook built-in Dialog to the user, so he can refine
search parameters and start searching.



Ads