XL: Public and Module-Level Variables Lost with SaveAs MethodLast reviewed: February 3, 1998Article ID: Q124224 |
The information in this article applies to:
SYMPTOMSIn the versions of Microsoft Excel listed above, if you create a Visual Basic, Applications Edition macro, and you apply the SaveAs method to the workbook in which the code is currently running, you may lose the values for the public and module-level variables.
CAUSEIf the workbook is saved with a name that is different from the workbook's present name, the variables are reinitialized (they will not represent values).
STATUSMicrosoft has confirmed this to be a problem with Microsoft Excel versions listed above. This problem was corrected in Microsoft Excel 97 for Windows and Microsoft Excel 98 Macintosh Edition.
|
Additional query words: 7.00 5.00 5.00a 5.00c scope static XL5 XL7
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |