I need to count the total number of rows that have data. I want to be able to use this on multiple sheets with different amounts of data rows.
I cannot figure out gener
lastrow = Sheet1.Range("A#").End(xlDown).Row
This is more easy to determine the row count. Make sure you declare the right variable when it comes to larger rows. By the way the '#' sign must be a number where you want to start the row count.