ScopeFolder.AddToSearchFolders method (Office)
Adds a ScopeFolder object to the SearchFolders collection.
Syntax
expression.AddToSearchFolders
expression A variable that represents a ScopeFolder object.
Remarks
Although you can use the SearchFolders collection's Add method to add a ScopeFolder object to the SearchFolders collection, it is usually simpler to use the AddToSearchFolders method of the ScopeFolder object that you want to add, because there is only one SearchFolders collection for all searches.
Example
The following example adds the root ScopeFolder object to the SearchFolders collection. For a longer example that uses the AddToSearchFolders method, see the SearchFolders collection topic.
SearchScopes(1).ScopeFolder.AddToSearchFolders
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for