Microsoft KB Archive/178499

= XL98: "Auto_Open_xlquery_DClick" Error Appears Opening File =

Article ID: 178499

Article Last Modified on 9/11/2002

-

APPLIES TO


 * Microsoft Excel 98 for Macintosh

-



This article was previously published under Q178499



SYMPTOMS
When you open a file in Microsoft Excel 98 Macintosh Edition, 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?



CAUSE
This problem occurs if all of the following conditions are true:


 * You create a file with an Auto_Open macro in Excel 98. -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.



WORKAROUND
To work around this problem, follow these steps:

 Open the file in Excel 98. Press OPTION+F11 to start the Visual Basic Editor. In the Project window, click the plus sign (+) next to Modules. Click the module that contains the Auto_Open macro to select it.  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 the following: Sub StartupCode  On the File menu, click "Close and Return to Microsoft Excel." On the File menu, click Save As. In the Save As dialog box, change the file type to Microsoft Excel Workbook (*.xls). On the File menu, click Close, and then reopen the file in Excel 97. Press OPTION+F11 to start the Visual Basic Editor.</li> In the Project window, click the plus sign (+) next to Modules. Click the module that contains the renamed macro to select it.</li>  Rename the macro with the following name: Sub Auto_Open </li> 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.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

<div class="moreinformation_section">

MORE INFORMATION
Keywords: kbbug KB178499

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.