XL97: "Xlquery.xla Could Not Be Found" Error Opening File

Last reviewed: January 7, 1998
Article ID: Q173321
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you open a file in Microsoft Excel 97, you may receive the following error message:

   'C:\Program Files\Microsoft Office\Office\Library\Msquery\Xlquery.xla'
   could not be found. Check the spelling of the file name, and verify that
   the file location is correct.

   If you are trying to open the file from your list of most recently
   used files on the File menu, make sure that the file has not been
   renamed, moved, or deleted.

CAUSE

This error message occurs when you do the following:

  1. You move the Xlquery.xla file from its original folder to another folder.

        -and-
    

  2. You open a file that contains a macro referencing the Xlquery.xla add-in.

WORKAROUND

To work around this problem, use the following methods.

Method 1: Select the Xlquery.xla Add-In

  1. In Excel, click Add-Ins on the Tools menu.

  2. Click to select the MS Query add-in check box.

NOTE: If the MS Query add-in is not listed, click Browse to search for the Xlquery.xla file. This file by default is located in the folder:

   C:\Program Files\Microsoft Office\Office\Library\MSQuery

If you still receive the error message described in the "Symptoms" section of this article, or you cannot find the Xlquery.xla file, then go on to method 2.

Method 2: Move the Xlquery.xla Add-In to Its Original Location

  1. Click Start, point to Programs, and then click Windows Explorer.

  2. In Windows Explorer, point to Find on the Tools menu, and then click Files or Folders.

  3. In the Named box, type "Xlquery.xla" (without the quotation marks).

  4. In the Look In list, click to select the disk drive that might contain the add-in file, and then click Find Now.

  5. If the search returns no files, repeat step 4 for any other disk drives that might contain the add-in file.

  6. When the search window returns the file, right-click the Xlquery.xla file icon, and then click Copy on the shortcut menu.

  7. In Windows Explorer, click to open the MSQuery folder. By default, this folder is located in:

         C:\Program Files\Microsoft Office\Office\Library\MSQuery
    

    NOTE: Depending on where you installed Excel, the MSQuery folder may be located in a different path.

  8. In Windows Explorer, click Paste on the Edit Menu.

MORE INFORMATION

Functions from the XLQuery.xla add-in that generate the error message include QueryGetData and QueryRefresh.


Additional query words: XL97
Keywords : xladdins xlloadsave xlquery kberrmsg
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 7, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.