Home > Articles > Networking > Storage

  • Print
  • + Share This

Performing a Basic Search for Specific Text

As mentioned earlier, basic searches make it easy to search for documents containing specific text. Basic searches also search the full contents of each file's Properties dialog box, including information such as the file's author and subject.

To run a basic search from the Basic Search side pane, choose File, Search, or click the Search button on the Standard toolbar. The Basic Search side pane appears (refer to Figure 3.21).

NOTE

If Advanced Search appears, click the Basic Search hyperlink at the bottom of the pane.

If you prefer to work in a larger dialog box, choose File, Open; then click the Tools button and choose Search. The Basic tab of the Search dialog box appears (see Figure 3.22).

Figure 3.22 The Basic tab of the Search dialog box.

Whether you're working in the task pane or dialog box, the remaining steps are the same:

  1. Enter the text you're looking for in the Search Text box.

  2. TIP

    You can make a basic search more powerful by using wildcards. Word supports two wildcards:

    * (the asterisk character) represents any group of one or more characters. For example, S*artz finds both Schwartz and Swartz.

    ? (the question mark) represents a single character. For example, gr?p would find grip, but not grasp.

  3. Specify where you want to search by clicking the down arrow in the Search In drop-down box. A list of file locations appears. You can expand an item to include its subfolders by clicking the plus sign. Check the boxes corresponding to where you want to search; clear the boxes corresponding to locations you don't want to search.

  4. TIP

    By default, Word searches My Computer—in other words, all the folders on your computer. However, many people store all their Word files in the My Documents folder or a few other folders or subfolders. Don't search your entire computer if all your files are in a few locations: specify those locations, and you'll get done far more quickly.

    NOTE

    You can also search one or more of your Network Places. However, searching networks can be inherently slow due to bandwidth constraints, and there's no guarantee that every location on the network contains a Fast Search index.

  5. Specify types of files to search for. By default, Word searches all files created in any Office XP application; all Web pages; and all e-mail messages, appointments, contacts, tasks, and notes created in Outlook. To narrow or widen the search, click the down arrow in the Results Should Be drop-down box. A list of file types appears. You can expand an item to include subcategories by clicking the plus sign; for example, if you click the + sign next to Office files, check boxes appear for Word Files, Excel Files, PowerPoint Files, Access Files, Data Connection Files, and Document Imaging Files. Check the boxes corresponding to file types you want to search; clear the boxes corresponding to file types you don't want to search.

  6. When you're ready to search, click Search.

Word builds a list of all the files it finds. Figure 3.23 shows search results in the Search Results task pane; Figure 3.24 shows search results in the Search dialog box.

Figure 3.23 In the Search Results side pane, Word displays a list of all the files it finds.

Figure 3.24 In the Search dialog box, Word displays a list of all the files it finds.

You now have several options:

  • To open a file from the Basic Search side pane, click on the file. To open the file from the Basic tab of the Search dialog box, double-click on it; then click Open in the Open dialog box.

  • TIP

    Unfortunately, you can't open several found files at the same time (though the Search Results pane remains open as you open files one at a time).

    You can, however, open multiple files at once using the file search feature built into Windows itself. To use Windows' file search, choose Start, Search, For Files or Folders; create your search query; and click Search. When Windows returns a list of found files, press Ctrl and select each file you want to open, right-click, and choose Open. All the files will open.

  • To create a new file with the same contents as the existing file, click the down arrow to the right of the filename and choose New From This File from the drop-down list.

  • To copy a hyperlink to the file into the Office Clipboard, from where you can paste it into any document, click the down arrow and choose Copy Link to Clipboard.

  • To view the file's Properties dialog box, click the down arrow and choose Properties.

  • If the file is a Web page, to view it in your default browser, choose Open in Browser.

NOTE

In previous versions of Word, if you wanted Word to find documents containing all related forms of Word you specified, you had to check a Match All Word Forms check box. In contrast, Word 2002 finds all word forms automatically—whether you want it to or not.

One feature unfortunately removed from Word's file search feature is the capability to save a search for future use. However, when you display the Search task pane, it shows the last query you performed.

Advanced Search: Specifying Properties to Search For

Word enables you to refine yourd search, creating advanced searches that use an extraordinary collection of document properties and attributes. Examples of properties you'll use often are

  • Filename

  • Text or property (searches for specific text in the document, as well as text in the Properties dialog box)

  • Last modified (date the file was most recently edited)

However, when necessary, you can search by many other properties. For example, imagine that you're reviewing the past year's work and you want to know which projects took the longest to complete. You might use Search to find all Word files that had a "total editing time" of more than 20 hours. Or, if you're looking for reports that contain embedded audio comments, you could search for documents where the "Number of multimedia clips" is at least "1."

To perform an advanced search from the Advanced Search task pane, choose File, Search and click Advanced Search (see Figure 3.25).

Figure 3.25 Creating an advanced search from the Advanced Search task pane.

To perform an advanced search from the Search dialog box, choose File, Open; click Tools; choose Search; and click the Advanced tab (see Figure 3.26).

Figure 3.26 Creating an Advanced Search from the Search dialog box.

Whether you work from the task pane or dialog box, Advanced Search works the same way. Using the Property, Condition, and Value boxes, you first establish criteria for your search, one at a time. For example, you might add the criterion that the file must have been created within the last seven days, or that it must contain the word "Stevenson."

NOTE

As described in the "Performing a Basic Search for Specific Text" section earlier in this chapter, you can also specify:

  • Locations where Word should search, via the Search In drop-down box

  • File types to search for, via the Results Should Be drop-down box

TIP

You can specify text to search for in the Basic tab (or Basic Search task pane) and then switch to Advanced Search. The text you specified will be included in the search.

After you set a criterion, click Add to include it in the list of criteria Word is to consider. When you've listed the appropriate criteria to narrow your file list, click Search. Word searches for the files, displaying the results.

You add criteria using the Property and Condition drop-down boxes and the Value text box. Choose a property from the drop-down list of properties and document elements for which Word can search.

Depending on the property, Word may display a list of available choices in the Condition drop-down box. For example, if you're searching for documents based on the number of pages they contain, your condition choices will include arithmetical conditions, such as equals and more than. After you've set the condition, you need to specify a value.

If you want to search for all files containing specific text, you can choose Text or Property from the Property drop-down box and enter the text in the Value text box. You can narrow searches by requiring that documents include multiple blocks of text, by specifying each block of text as a separate criterion. Because this can be confusing, an example is shown in Figure 3.27.

Figure 3.27 An example of searching for specific text.

TIP

To search for a phrase (multiple adjacent words), surround the phrase with quotation marks.

To search for files by the dates they were last modified, click the Property drop-down list box and select Last Modified. In the Condition drop-down list, choose one of the following options: Today, Last Week, This Week, Last Month, This Month, and Any Time.

Here are two examples of how the criteria you set in the Find Files That Match These Criteria window correspond to what Word actually searches for.

If you set the criterion Comments Include the Word Smith, Word searches the properties associated with every document, returning all files that contain the word "Smith" in the Comments property. (The Comments box may be found in the Summary tab of the Properties dialog box.)

If you set the criterion Last Saved By Is Not Walker, Word searches for the Last Saved By property, which you can find in the Statistics tab of the Properties dialog box. If the name stored there does not include "Walker," Word includes the file in its listings. (Note that Word bases Last Saved By information on the name stored in the User Information tab of the Tools, Options dialog box.)

→ For more information on using document properties to track your documents, see "Using Document Properties to Simplify Document Management," in the Bonus Word Chapter titled "Managing Word More Effectively" at http://www.quehelp.com.

Before you finalize a search criterion, you need to take one more step, which relates to the breadth of the search you want. In some cases, you are designing criterion to find many files; for example, you might want to take a look at all the work you did for a specific client last month. In such cases, you may want each criterion to add more files to the list that Word provides. In other cases, you may be looking for one specific file. Then, you'll want to design your searches as narrowly as possible, ideally to return only that one file.

To create a broader search, click the Or button. Word then returns files that meet either this criterion or the other criteria that you include. To create a narrower search, click the And button. Then, Word displays only those files that meet this criterion as well as the others.

When you're satisfied with one search criterion, click Add, and Word places it beneath the other criteria. You can then add other criteria until you're satisfied. Then, click Search, and Word displays the files you've requested.

NOTE

If Word's Search feature isn't locating the files you expect, see "What to Do If Advanced Search Doesn't Locate What You Need" in the "Troubleshooting" section of this chapter.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.