Article ID: 182482 - Last Review: September 11, 2002 - Revision: 1.0 XL98: Code Behind Worksheet or Workbook May Not WorkThis article was previously published under Q182482 For a Microsoft Excel 2000 or later version of this article, see 213581
(http://support.microsoft.com/kb/213581/EN-US/
)
.
For a Microsoft Excel 97 version of this article, see 157346 (http://support.microsoft.com/kb/157346/EN-US/ ) . SYMPTOMS
In Microsoft Excel 98 Macintosh Edition, code that is contained "behind" a
worksheet or workbook may not work correctly.
CAUSE
This problem will occur if both of the following conditions are true:
WORKAROUND
In order for automatically-running subroutines to work correctly in
Microsoft Excel 98 Macintosh Edition, they must be contained within a
Visual Basic module. To insert a new module:
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
MORE INFORMATION
In Microsoft Excel 98 Macintosh Edition, Visual Basic for Applications code
can be stored in three different locations: in a Visual Basic module, in a
Visual Basic class module, and "behind" worksheets and workbooks.
To edit code "behind" a worksheet or a workbook:
If an Auto_Open, Auto_Close, or other automatically-running subroutine is stored "behind" a worksheet or ThisWorkbook, it may not function correctly when you open or close your workbook, or when you perform an action that should cause the subroutine to run. | Article Translations
|

Back to the top
