Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: File Size Increases After Launching Visual Basic Editor


View products that this article applies to.

This article was previously published under Q211888

↑ Back to the top


Symptoms

In Microsoft Excel, the size of a workbook may increase after you save it if one of the following conditions is 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.

↑ Back to the top


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.

↑ Back to the top


Workaround

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

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

To reduce the size of your file, follow these steps:
1.If the workbook is currently open, save the workbook, and 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, 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, and then 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.

↑ Back to the top


Keywords: KB211888, kbprb, kbprogramming

↑ Back to the top

Article Info
Article ID : 211888
Revision : 4
Created on : 11/5/2003
Published on : 11/5/2003
Exists online : False
Views : 236