XL97: File Size Increases After Launching Visual Basic Editor

Last reviewed: February 12, 1998
Article ID: Q166092
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

In Microsoft Excel, the size of a workbook may increase after you save it if the following conditions are true:

  • You start the Visual Basic Editor while you are editing the workbook.

        -or-
    
  • The Visual Basic Editor is running when you open the workbook.

CAUSE

When you start the Visual Basic Editor, Microsoft Excel creates a Visual Basic module sheet for each worksheet and chart sheet in the workbook. The size of the workbook increases by approximately 1,000 to 1,500 bytes for each worksheet and chart sheet in the workbook.

WORKAROUND

To work around this behavior, use the following appropriate method.

If Your Workbook Does Not Contain Any Visual Basic Modules or UserForms

You can reduce the size of your file by following these steps:

  1. If the workbook is currently open, save the workbook, then close it.

  2. Close the Visual Basic Editor if it is running.

  3. Open the workbook.

  4. Save the workbook.

The size of your workbook will be reduced by approximately 1,000 to 1,500 bytes for each worksheet and chart sheet that it contains.

If Your Workbook Contains Visual Basic Modules or UserForms

If you are using Visual Basic modules or UserForms in your workbook, then you can reduce the size of your file by deleting any unused worksheets. To delete an unused worksheet, follow these steps:

  1. Activate the worksheet by clicking on its sheet tab.

  2. On the Edit menu, click Delete Sheet and click OK.

When you save your workbook, the size of the workbook will be reduced by approximately 1,000 to 1,500 bytes for each unused worksheet that you delete.

STATUS

This behavior is by design.


Additional query words: XL97 bigger
Keywords : xlloadsave xlvbainfo kbprg
Version : WINDOWS:97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 12, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.