Hello all,
I'm trying to use vba to determine the range of a worksheet so that the range includes all data on the sheet.
I've found the following code to determine the bottom, right most cell
The problem is that the function returns a string, not a range reference.
i.e. if the 'ctrl-end' keystroke were to take me to cell 'AM68' the function returns a string
'$AM$68'.
It seems to me it should be a trivial process to turn the info into a range object, but I'm really struggling here. Any help would be appreciated.
Once I have the range I want to replace the hard-coded range reference is the code below
Thanks in advance for your help.
Bookmarks