File size too big

princessdy

New Member
Joined
Jul 29, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi, I have one file that bugs me. It contains some data and I cannot understand why the file is more than 1MB. Our file size is usually 40-80KB some exceeding 400KB but that's about it.

I tried all the tips from the web how you can reduce the file. Until I tried deleting all our worksheets inside and the file is still more than 1MB.

Can you let me know why is this so?

The test file is below.

Test File
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If you press CTRL + end, which cell does it go to on each sheet ?
You could also try running this macro, then saving the workbook.
VBA Code:
Sub MM2()
    Dim x As Long, LastRow As Long, LastCol As Long
    Application.ScreenUpdating = False
    On Error Resume Next
    For x = 1 To Sheets.Count
        With Sheets(x)
            LastRow = .Cells.Find("*", , xlValues, , xlByRows, xlPrevious).Row
            LastCol = .Cells.Find("*", , xlValues, , xlByColumns, xlPrevious).Column
            .Range(.Cells(1, LastCol + 1), .Cells(Rows.Count, Columns.Count)).Delete
            .Range(.Cells(LastRow + 1, 1), .Cells(Rows.Count, Columns.Count)).Delete
        End With
    Next x
    On Error GoTo 0
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
When I press CTRL + END, the cell point to A1.

I run the macro. Is it supposed to do anything? I saved the file with the macro and the file size is still more than 1MB.
 
Upvote 0
As an alternative solution for my original file, I just copied each worksheet to a new file and the new file became 67KB in size.

So for future case, let me know what makes the file so big when all the worksheets are blank? The file is linked in the first post.
 
Upvote 0
Sounds simply like a corrupted file !
 
Upvote 0
Solution
Sounds simply like a corrupted file !
OK! Then I'll just delete the file so it won't be used again for next year. We re-use the file for next year in our case. Thanks for your time!

To others, if you have other ideas, let me know!
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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