none
SearchObject() for AdvancedFind (Ctrl+Shift+F) RRS feed

  • Question

  • Hi, this works OK...

    Set objSch = Application.AdvancedSearch(strS, strF)
    
    Private Sub Application_AdvancedSearchComplete(ByVal objSch As Search)
    MsgBox objRsts.Count & "x, Found"
    ...

    It is posssible to get pointer to SearchObject for:

    OUTLOOK:   AdvancedFind (Ctrl+Shift+F) not in VBA, manually selection

    I want to Search MANUALLY, and the Results processed in VBA-code


    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Tuesday, August 25, 2015 1:07 PM

Answers

  • Hi PACALA_BA,

    >>WHY the event not fires when AdvancedSearchis started with (Ctrl+Shift+F).....?cryhard.gif

    AdvancedSearch ...is too complicated, it would be better to SEARCH manually, and processing results with VBA/programmatically   iconfused.gif

    or can i load the FILTER from ACTIVEAdvancedSearch that was started manually ...?iconfused.gif<<

    No. There is no such event we can listen to the search event when we search items in the Outlook manually. As a workaround, we can build a form to search the items via code and use Application_AdvancedSearchComplete event.

    And if you want Application_AdvancedSearchComplete event is fired when we search items manually, you can try submit the feedback from 'Smile Face' at the top right corner of Outlook 2013 application.

    In addition, here are some helpful articles about searching and filtering:

    Enumerating, Searching, and Filtering Items in a Folder

    Search and Filter (Outlook)

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Wednesday, August 26, 2015 6:41 AM
    Moderator

All replies

  • Hello,

    No, it is not.

    You may consider handling the AdvancedSearchComplete event of the Application class is fired when the AdvancedSearch method has completed. The AdvancedSearchComplete event is used to return the object that was created by the AdvancedSearch method. But this event only fires when the AdvancedSearch method is executed programmatically.

    See How to use the AdvancedSearch method to search for an item in Outlook for more information.
    Tuesday, August 25, 2015 1:45 PM
  • Hi, thanks....but

    AdvancedSearchComplete ...But this event only fires when the AdvancedSearch method is executed +++programmatically+++.........YES, YOU ARE RIGHT

    QUESTION:

    WHY the event not fires when AdvancedSearchis started with (Ctrl+Shift+F).....?cryhard.gif


    AdvancedSearch ...is too complicated, it would be better to SEARCH manually, and processing results with VBA/programmatically   iconfused.gif

    or can i load the FILTER from ACTIVEAdvancedSearch that was started manually ...?iconfused.gif



    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Tuesday, August 25, 2015 3:33 PM
  • Hi PACALA_BA,

    >>WHY the event not fires when AdvancedSearchis started with (Ctrl+Shift+F).....?cryhard.gif

    AdvancedSearch ...is too complicated, it would be better to SEARCH manually, and processing results with VBA/programmatically   iconfused.gif

    or can i load the FILTER from ACTIVEAdvancedSearch that was started manually ...?iconfused.gif<<

    No. There is no such event we can listen to the search event when we search items in the Outlook manually. As a workaround, we can build a form to search the items via code and use Application_AdvancedSearchComplete event.

    And if you want Application_AdvancedSearchComplete event is fired when we search items manually, you can try submit the feedback from 'Smile Face' at the top right corner of Outlook 2013 application.

    In addition, here are some helpful articles about searching and filtering:

    Enumerating, Searching, and Filtering Items in a Folder

    Search and Filter (Outlook)

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Wednesday, August 26, 2015 6:41 AM
    Moderator
  • Hi Fei, thanks for ideas

    i will use ActiveExplorer.AddToSelection, because of, it is easy to use/Filter..


    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Wednesday, August 26, 2015 1:38 PM