I would like to write a VBA code to check if a Range in Excel is empty and, if not, what are the rows which are non-empty.
This question 10811121 answers how to check if Range("A1:L1000")
is empty:
WorksheetFunction.CountA(Range("A1:L1000"))
If the Range is not empty I would like to determine the indexes of the non-empty rows. It doesn't not matter how many cells are non-empty in the row. One solution is to check one by one if each row in the range is empty or not but I would like to know if there is an easier solution without looping.