shavenlunatic
MIS
Hi,
I get sent a HUGE excel daily.. huge mainly due to the fact that a couple of sheets usedrange is set to 65000+ rows
now, i tried running
but I have a feeling (just by looking at it, as i've not used specialcells before and not 100% sure on it) that it is just checking if the cell in the first column is blank then delete the WHOLE row..
this would be great but occasionally the first cell will be blank but the rest of the row may still contain data. Plus I wasn't to bothered about deleting the occasional blank row it was just the blanks from the end-of-data to the max row that I wanted rid of.
I could do this by looking backwards through the sheet and deleting the rows as I go until I hit some data, but I just wanted a 1 or 2 line chunk of code I can stick in the immediate window and run. Any ideas
Hope I explained myself well enough, still haven't had my coffee injection.
Thanks in advance
________
clueless
I get sent a HUGE excel daily.. huge mainly due to the fact that a couple of sheets usedrange is set to 65000+ rows
now, i tried running
Code:
Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
ActiveSheet.UsedRange
but I have a feeling (just by looking at it, as i've not used specialcells before and not 100% sure on it) that it is just checking if the cell in the first column is blank then delete the WHOLE row..
this would be great but occasionally the first cell will be blank but the rest of the row may still contain data. Plus I wasn't to bothered about deleting the occasional blank row it was just the blanks from the end-of-data to the max row that I wanted rid of.
I could do this by looking backwards through the sheet and deleting the rows as I go until I hit some data, but I just wanted a 1 or 2 line chunk of code I can stick in the immediate window and run. Any ideas
Hope I explained myself well enough, still haven't had my coffee injection.
Thanks in advance
________
clueless