I am trying to retrieve the address of a cell in a selected range so it can be compared to the current input. If they are the same, the Loop is broken and the code moves on. (If GetFullAddress = GetDefaultCell then exit loop as below
The ranges chosen by the user are limitless, so this check helps end the loop:
GetFullAddress is working perfectly:
But no matter how hard I try I cannot get the variable firstCell to read anything other than "1", which is the cell value. I tried reading the address into a string ( firstCellString = CStr(UserRanges.Item(UserRanges.Count).Cells(1, 1).Address) ) and converting it to a range (firstCell = Range(firstCellString)). In this case firstCellString returns "$A$1" but when i pass it through the second step firstCell = 1. I need first cell to be $A$1 help?
Bookmarks