Bloat file size

SIGE

Board Regular
Joined
Oct 6, 2010
Messages
88
Hello,

I have a workbook in which I have a bit of code ... a couple userforms, a couple modules.

Which is 90kb in size.
On 1 of the sheets i hide "all" columns and "all" rows ... well, A1:Z100 remains visible.
after saving the file, it becomes 2890 kb ... I tried this several times now, with always the same result.

any suggestions?

Sige
 
I am just unlocking the sheet to "empty" "A3", no?
I guess I could do ...


With UserAdministration
.Unprotect pword
.Range("A3").Locked = False
.Range("A3") = ""
.Range("A3").Locked = True
.Protect pword
End With</pre>
but the bloating effect remains the same ...
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
But was the file already bloated when you did that?
 
Upvote 0
First test: comment out all the BeforeClose code and see if the bloat still occurs?
 
Upvote 0
I copied all the code and transferred the Userforms modules to a fresh workbook ...

Then, hiding my rows and columns again. Closign the Wb, saving the Wb
And no bloating...

The problem seems resolved, but the cause of it intrigues me ...
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,194
Members
453,151
Latest member
Lizamaison

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