Hi,
I have this code which is called from a cell on a worksheet:
I want to get the address and worksheet name of the cell which called the function. This could be in multiple cells across many different worksheets.Public Function CountT(iRow As Integer) Debug.Print Application.Caller End Function
when I set a breakpoint and add Application.Caller to the watch window, I get 'Error 2023'
Does anyone have any ideas how I can get this to work? Do I need any references set?
Thanks