Excel Worksheets containing 1048576 rows -

Danny54

Active Member
Joined
Jul 3, 2019
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Is there a vba macro that will delete all empty rows of a worksheet?

I'm seeing my workbook sizes growing exponentially but when looking at the rows/columns that contain data, it showing the last row 2500, last column G.
I wouldn't think that the workbook size should contain 1048576 rows and have a filesize of 2641 kb.

Suggestions would be most appreciated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If you open any blank Excel workbook, it will show all rows, down to row 1048576, but that does not mean that is how many rows are used or saved, taking up that much memory.
Now, if you populate or pre-format all those rows, it may use them all. But it won't, by default, unless you explicitly do something to trigger it to.
So you shouldn't concern yourself because you can see a bunch of blank rows, unless you think Excel thinks that range is being used for some reason (because of something you did).

If you provide a bit more information on how you are using and populating this file, it may shed some light as to what is going on.
 
Upvote 0
that make since, is there a way to check for content, formulas, hidden stuff, ect.. - say the first 20 rows after the data isn't being displayed anymore
 
Upvote 0
oh, btw, when opening this workbook it takes serveral minutes.
 
Upvote 0
If you click cell A1 then do a Ctrl + End where does the cursor go to?
 
Upvote 0
Row 1239 row Q - this is what i expect. So, my takeaway is - file size and load time due to data residing in each used cell and row.

Thanks so much.

Have a wonderful day
 
Upvote 0
Is there VBA code in the file, or links to other file/sources?
Those are also things that can slow files down.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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