Export (0) Print
Expand All

Explorer.Search Method

Office 2007
Performs a Microsoft Instant Search on the current folder displayed in the Explorer using the given Query.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.Search(Query, SearchScope)

expression   A variable that represents an Explorer object.

Parameters

NameRequired/OptionalData TypeDescription
QueryRequiredStringA search string that can contain any valid keywords supported in Instant Search.
SearchScopeOptionalOlSearchScopeSpecifies the scope in terms of folders for the search.

Remarks

The functionality of Explorer.Search is analogous to the Search button in Instant Search. It behaves as if the user has typed the query string in the Instant Search user interface and then clicked Search. When calling Search, the query is run in the user interface, and there is no programmatic mechanism to obtain the search results. For more information on Instant Search, query for "Instant Search" in the Outlook Help.

The Search method does not provide a callback to enable the developer to determine when the search is complete.




Community Additions

ADD
Show:
© 2014 Microsoft