question

MikeVaughanEdwards-1770 avatar image
0 Votes"
MikeVaughanEdwards-1770 asked lindalu-MSFT edited

Can I avoid Instant Search's drop down menu of suggestions

I have added a query builder in a form that then triggers

olExplorer.Search(SearchText(), Outlook.OlSearchScope.olSearchScopeAllFolders);
this.Close();

It does exactly what I want except that Outlook insists on popping up a menu of search suggestions although the search has been carried out. I just want to see the search results without the pop-up menu.

I have tried using SendKeys various ways with ENTER, TAB and ESC but none have the desired effect.

Any suggestions?

office-outlook-itprooffice-vba-dev
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MikeVaughanEdwards-1770,
Welcome!
Seems that you are using Outlook via Programming method. Please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client and know little about developer issues. So, in order to better help solve your issue, I added some develop-related tags to your post. Thanks for your understanding and hope your issue could be resolved soon.

0 Votes 0 ·

The closest one i remember is the following API call.


0 Votes 0 ·

1 Answer

MikeVaughanEdwards-1770 avatar image
1 Vote"
MikeVaughanEdwards-1770 answered JeffYang-MSFT commented

Thanks for the suggestion. For the record I figured it out. I was calling the Explorer.Search method from within the form I was displaying for the user to construct the query. When the user clicked the button on the form the search executed then the form close. The result was that the search results appeared straight away but the UI did not respond - hence the drop down menu of suggestions as though the search had not been executed.

I changed things so that all the fork did was allow the user to construct the search query. When the user clicked the button the form closed and the Explorer.Search was then executed by code in the main add-in module. Suddenly things worked just as I expected.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Congratulations. Thanks for your sharing.

0 Votes 0 ·