Is there a better way to accurately count the rows of a table without running a whole page of codes?
I am currently using sheet1.usedrange.rows.count
but that counts even the blank rows or rows that were previously used but contents were cleared later on.
I have used LastRow = Sheet1.Cells(Sheet1.Cells.Rows.Count, "M").End(xlUp).Row
before but I can't use this now as column M or any of my other columns can have blank cells in them.
I just needed to easily delete rows that do not have any cells with contents.
Sarah