Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Open Advanced Search Dialog (http://www.outlookbanter.com/outlook-vba/98515-open-advanced-search-dialog.html)

progger January 1st 10 08:44 PM

Open Advanced Search Dialog
 

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.

Could anyone help me out with some code samples?

Thanks alot for your help in advance!
progger


--
progger
http://forums.slipstick.com


Sue Mosher [MVP][_4_] January 1st 10 09:06 PM

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
news:progger.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.





All times are GMT +1. The time now is 03:36 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-2006 OutlookBanter.com