I would like to write a function that is self-aware of its own cell address. For instance, I would like to be able to place an argumentless function in any cell, and when called, that function will perform an operation based on the value in the cell immediately to its left.
I tried the following, which works great if the cell with the function in it is the active cell, but that won't be my case in general.
Function Test()
Test = Range(Application.ActiveCell.Address).Offset(0,-1)
End Function
I'm guessing that there's an easy solution to this challenge, but it's only easy once you know it!!!
Thanks in advance!
(Excel 365)
