Working with the FileSearch Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The FileSearch object exposes a programmatic interface to all the functionality of the Office File Open dialog box, including the features found in the Advanced Find dialog box, which is available from the Open dialog box. You can use the objects, methods, and properties of the FileSearch object to search for files or collections of files based on criteria you supply.
Note If Microsoft Fast Find is enabled, the FileSearch object can use Fast Find indexes to speed up its searching capabilities.
In This Section
- The Basics of File Searching
Understand the methods and properties of file searching. - Using Advanced File-Searching Features
Learn about some more complex file-searching features. - Creating Reusable File-Search Code
Learn why the FileSearch object is a great candidate for encapsulation in a class module.
Related Sections
- Working with Shared Office Components
Search for files, use the Office Assistant, manipulate command bars, read and write document properties, read and write script, and hook add-ins to your Microsoft® Office application using a set of shared objects available in all Office applications. - Referencing Shared Office Components
Return a reference to a shared component object by using the appropriate properties. - Working with the Office Assistant
Use the objects, methods, and properties of the Office Assistant object to programmatically control the Office Assistant. - Working with Command Bars
Write code to manipulate command bars that can be used in any Microsoft® Office application or custom application you develop. - Working with Document Properties
Use document properties to create, maintain, and track information about a Microsoft® Office document. - Working with Scripts
Access script, or insert script into a cell or range in a Microsoft® Excel worksheet, a Microsoft® PowerPoint® slide, a Microsoft® Word document, or Word Selection object.