Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: "Auto_Open_xlquery_DClick" Error Message When You Open File


View products that this article applies to.

This article was previously published under Q211706

↑ Back to the top


Symptoms

When you open a file in Microsoft Excel, you may receive the following error message:
Cannot find Auto_Open_xlquery_DClick, which has been assigned to run each time [File Name]Sheet Name is opened. Continuing could cause errors. Cancel opening [File Name]Sheet Name?

↑ Back to the top


Cause

This problem occurs if all of the following conditions are true:
  • You create a file with an Auto_Open macro in Excel 2000.

    -and-
  • You create a query in Microsoft Query that returns data to Excel, and you store the query in the file.

    -and-
  • You save the file in the Microsoft Excel 5.0/95 Workbook (*.xls) format.

↑ Back to the top


Workaround

To work around this problem, follow these steps:
  1. Open the file in Excel 2000, and press ALT+F11 to start the Visual Basic Editor.
  2. In the Project window, click the plus sign (+) next to Modules. Click the module that contains the Auto_Open macro to select it.
  3. Locate the Auto_Open macro and rename it. To do this, change the first line of the macro. For example, if the first line of the macro is the following
           Sub Auto_Open()
    						
    change it to
           Sub StartupCode()
    					
  4. On the File menu, click Close and Return to Microsoft Excel.
  5. On the File menu, click Save As. In the Save As dialog box, change the file type to Microsoft Excel Workbook (*.xls) .
  6. On the File menu, click Close, and then reopen the file in Excel. Press ALT+F11 to start the Visual Basic Editor.
  7. In the Project window, click the plus sign (+) next to Modules. Click the module that contains the renamed macro to select it.
  8. Rename the macro with the following name:
           Sub Auto_Open().
    					
  9. On the File menu, click Close and Return to Microsoft Excel. On the File menu, click Save, and then click Close.

    When you reopen the file, the error message does not appear.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB211706, kbpending, kberrmsg, kbbug

↑ Back to the top

Article Info
Article ID : 211706
Revision : 4
Created on : 10/8/2003
Published on : 10/8/2003
Exists online : False
Views : 274