I have been unable to figure this out, and googling has yielded no help!
I have a VBA function which I would like to run in individual cells in a spreadsheet.
The function needs to know the row the function was just typed into.
I currently pass this information by having a column dedicated to row count (ie. it goes 1-2-3-4-5-6-etc.).
This is a bit clumsy and not particularly slick, so I was trying to find a way to basically just type the function (ie. =myfunc()
) into the cell and then have a line within the cell that does something along the lines of:
CurrentRow = CellFunctionWasTypedInto.Row