Hi!
I'm trying to write a simple function to determine the last cell (or row) of any worksheet.
I thought it would be simple but the following code presents erroneous results:
The Debug.Print returns the correct value. However, in the worksheet, I get "1" when this isn't definitely the case!![]()
Please Login or Register to view this content.
When replacing ".Row" for ".Address", same wrong value. In this case "$1:$65536". Once again, the debug.print returns the correct value...
Any hints?
Bookmarks