One thing to note about that OzGrid solution, it's 8 years old and doesn't account for Excel 2007+ million+ rows. It starts looking up from row 65536 (max in Excel 2003-) to find the last used row. If your data contains more than that many rows, you won't get the correct last row. This may not apply to your situation, but for anyone else reading this thread in the future please take that into account.
It's probably better to use something along the lines of:
Note: The formula in the above code is from the Oz page, not the solution to this problem.
Bookmarks