The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you open a workbook that contains a defined-name automatic Visual Basic procedure, you may receive the following error message: where <procedure> is the name of the Visual Basic procedure that has been defined on a worksheet in <workbook> with a name that begins with Auto_Open and <worksheet> is the first worksheet in <workbook>. CAUSECAUSE 1This error message may be caused by one of the following:
CAUSE 2You can also receive the aforementioned error message if you have a defined name "Auto_Open" (referring to Sheet1!A1 for example), without quotes, and a macro in the workbook that is also called "Auto_Open", without quotes.RESOLUTIONCAUSE 1If you receive this error message, and you have verified that the procedure does exist in the location specified in the defined name, do the following to view the error in the procedure that is causing the incorrect error message:
CAUSE 2If you receive the above error message because you have both a defined name called "Auto_Open" and a macro called "Auto_Open," rename the defined name or the macro to something other than "Auto_Open."MORE INFORMATION
You can create a defined name on a worksheet that refers to a Visual Basic
procedure so that it automatically runs that procedure when the worksheet
is opened, closed, activated, or deactivated. If you define a name that
begins with Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate, and
the name refers to a Visual Basic procedure, that procedure will run when
the described action is performed on the worksheet.
Additional query words:
Keywords : kbprg |
Last Reviewed: July 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |