View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rich Mcc Rich Mcc is offline
external usenet poster
 
Posts: 19
Default delete all blank rows in a spreadsheet

you could have a Helper Colum in col a ,,, that counts all the non empty
cells in that row,, uning the countif function

then ya could sort by that row ,,


Rich


"Richard" wrote:

How do I delete entire rows in a spreadsheet with a VBA macro?

I can't use autofilter (or similar techniques) as not all of the columns
have data in every non blank row i.e. if I sorted by column A, there may be a
row with a blank cell in column A, but another column (say AX) that may be
out of view could have data in it.