polarisking
Member
Note: I had posted this incorrectly to the general Excel forum initially.
Hopefully, this is an easy one. I have a Function that needs to know the Row & Column in which the Function is being executed. If I use the Function many times on the same worksheet, it's returning the same value in every cell since I'm, incorrectly, pointing to Active.Row and Active.Column.
How do I pass, implicitly, the row and column of where the Function is being called from so in the case of the Function returning the cell address; it would return A3 and G6 respectively if I have the Function in both cells?
SOLVED
Function CellAddress() As String
CellAddress = Application.Caller.Address(0,0)
End Function