I have seen a bunch of solutions, but all include either checking the whole range or checking a specific cell in a range.
Is there a way to check if there are any empty cells in a specific range?
This is what I am currently using, but thisCount
is always 0, even though I know it should be 27 (27 being the number of occupied cells). I have opened debugging mode to, and I see that the range is in fact the one that I want.
range = xlWorkSheet.Range[xlWorkSheet.Cells[rows][1], xlWorkSheet.Cells[rows][columns]];
double thisCount = this.Application.WorksheetFunction.CountA(range);