Crashing when Searching

Written by Allen Wyatt (last updated May 30, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


Pavlos reports a problem he is encountering when searching for files using Excel. In the Open dialog box of Excel you can use the search tool to find workbooks on disk. In Pavlos' case, the tool locates the desired workbooks correctly, but then always gives an error message that it has "performed an illegal operation and will shut down." This happens not only in Excel, but in Word, as well.

It's time to put on your troubleshooting hat and do some detective work. The first thing to figure out exactly when the error is occurring. If it occurs when the file is being searched for (before you try to open the file), then there is a chance the problem is with Windows, not Excel or Word. To determine if this is the case, use the Windows Search feature to locate some *.xls files. If you get the same error during the search, the problem is with Windows, and you should run the normal disk maintenance programs such as Scandisk and Defrag; this may clear up the problem.

If the error occurs when you try to open the files in Excel, then try creating a new simple workbook with only one cell filled in. Save it and try to find it. If it opens successfully, then the other files are corrupted and you should try to salvage data from that workbook into a new workbook.

If the new workbook does not open correctly, then there is a problem with your Office installation. Consider reinserting the Office installation CD and choosing the Fix or Repair Office option. Also make sure that you have the most recent service packs installed for your version of Excel.

If the problem persists, then you may need to uninstall Office completely and reinstall it.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2415) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Nesting IF Worksheet Functions

The IF worksheet function is very handy to make conditional evaluations. You are not limited to a single IF comparison, ...

Discover More

Skipping Hidden Rows in a Macro

As your macro processes information in a worksheet, you may want to make sure that it skips over rows that are hidden. ...

Discover More

Resetting Page Setup

If you ever open a workbook and find that your carefully crafted worksheets no longer print on the number of pages you ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (menu)

Checking for the Existence of a File

The data stored in a worksheet can often correspond to information external to that worksheet. For instance, you might ...

Discover More

Making Changes in a Group of Workbooks

If you need to change the same data in a large number of workbooks, the task can be daunting. Here are some ideas (and ...

Discover More

Changing Link References

If you use UNC paths in your links to external information, those paths may need to be changed at some point. You can ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.