Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.31 KB

Office.SearchFolders.md

File metadata and controls

32 lines (20 loc) · 1.31 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SearchFolders object (Office)
vbaof11.chm258000
vbaof11.chm258000
Office.SearchFolders
5958cafc-880e-ee9f-b2f5-be463bfe5232
01/23/2019
medium

SearchFolders object (Office)

A collection of ScopeFolder objects that determines which folders are searched.

Remarks

For each application, there is only a single SearchFolders collection. The contents of the collection remains after the code that calls it has finished executing. Consequently, it is important to clear the collection unless you want to include folders from previous searches in your search.

Use the Add method of the SearchFolders collection to add a ScopeFolder object to the SearchFolders collection; however, it is usually simpler to use the AddToSearchFolders method of the ScopeFolder that you want to add because there is only one SearchFolders collection for all searches.

See also

[!includeSupport and feedback]