편집

다음을 통해 공유


Explorer.Search method (Outlook)

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

Syntax

expression. Search( _Query_ , _SearchScope_ )

expression A variable that represents an Explorer object.

Parameters

Name Required/Optional Data type Description
Query Required String A search string that can contain any valid keywords supported in Instant Search.
SearchScope Optional OlSearchScope Specifies 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.

See also

Explorer Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.