Huge file size doesnt make any sense

Skagga5

New Member
Joined
May 23, 2013
Messages
11
Hi All

I have got a VBA model that performs our monthly reporting, I then have a command button on an Userform which allows the user to email four of the sheets in the workbook, will refer to this as the extracted workbook.

The masterfile is 18MB, the extracted workbook that gets emailed is 3MB big, when I copy each individual sheet of the extracted workbook into a new workbook each of the four files are 3MB. If I delete my four sheets in the extracted workbook and I am effectively left with an empty workbook the file size is still 2.7Mb. Somewhere something is hiding that is causing this workbook size to be overly excessive.

Any help on how I can reduce the file size would be greatly appreciated.

regards
 
Thanks Mark. I have a feeling that something may have changed in our Firewall at work!
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Thank you very much for all the replies.

I have added the below code to clear all the names which have resolved the issue.
<code class="vb keyword">Dim</code> <code class="vb plain">xName </code><code class="vb keyword">As</code> <code class="vb plain">Name</code>
<code class="vb keyword">For</code> <code class="vb keyword">Each</code> <code class="vb plain">xName </code><code class="vb keyword">In</code> <code class="vb plain">Application.ActiveWorkbook.Names</code>
<code class="vb spaces"> </code><code class="vb plain">xName.Delete</code>
<code class="vb keyword">Next</code>
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top