.
Depending on how literally you mean “within” you can add a parameter to the function and pass in ROW(). So
MYSELFAWAREFUNC(Datum1,Datum2,SHEET(),COLUMN(),ROW())
Just be sure to subtract 1 since everything in your macro (other than function access) will be 0-based addressing.
See Getting Caller (Calc Cell) in an UDF (View topic) • Apache OpenOffice Community Forum
I think you can also just send in a range…and pick the SCR from that. Check the link clear to the end.
I’m sure you are right. I’m OCD about encoding the same value twice in any way, implicitly or explicitly, probably because I’m so good at finding a way to break things five minutes after I thought about not breaking them that way.