The information in this article applies to:
SYMPTOMS
In Microsoft Excel, when you edit a Microsoft Visual Basic for Applications
procedure in a workbook and then save the workbook, the workbook file size
increases even if you delete code from the procedure.
CAUSE
This behavior occurs because the variables that you use in a procedure are
stored in the module that contains the procedure. When you enter a variable
name in a Visual Basic module, whether you use the Dim statement to
dimension the variable or not, the name is stored in a name table. The disk
space used for the variable in the name table is not freed until the module
that contains the procedure is deleted. Because of this behavior, a
workbook increases in file size when you add new variables to a procedure
in the workbook, and does not decrease in file size when you delete
variables from a procedure in the workbook.
Q116392 Cannot Modify a Visual Basic Procedure in Break Mode WORKAROUNDS
To work around this behavior, you can save your Visual Basic module to the
Basic Code (Text) file format, delete the original module, and then insert
the text file into a new module in your workbook by doing the following:
Additional query words: 5.00a 5.00c 7.00a clean dirty
Keywords : kbprg OptPrfm OptMemMgt PgmVbl |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |