I want to write my own function which takes details from same rows but different columns on another sheet.
I dont want to pass the Row in the function.
Is there a way of identifying which row the function is recalculating. I thought it would be Activecell but of course this is the cell where the cursor is - Recalculating all my other cells containing this function.
=GetIt(NamedField)
Public Function GetIt(FieldDetails)
Application.Volatile
GetCol = FieldDetails.Column
GetRow = ActiveCell.Row
GetIt = ActiveWorkbook.Sheets("OtherSheet").Cells(GetRow, GetCol).Value
End Function
Any help much appreciated.
I dont want to pass the Row in the function.
Is there a way of identifying which row the function is recalculating. I thought it would be Activecell but of course this is the cell where the cursor is - Recalculating all my other cells containing this function.
=GetIt(NamedField)
Public Function GetIt(FieldDetails)
Application.Volatile
GetCol = FieldDetails.Column
GetRow = ActiveCell.Row
GetIt = ActiveWorkbook.Sheets("OtherSheet").Cells(GetRow, GetCol).Value
End Function
Any help much appreciated.