I have the function below in a module in a workbook. The function is only used on one sheet in this workbook, nowhere else.
However, if this workbook happens to be open and I am stepping through the macro in another workbook, the moment any cell value changes, it goes to this function and seems to recalculate every single cell containing the function is the first workbook.
Is it at all possible to have the function only run when the cells calling it change? It is seriously annoying! You can’t step through any macro without having to switch off auto calculation.
Function findit(v As Variant, r As Range) As String 'Will find either numbers or text. Use like: ' =findit("happy",A1:C100) Dim rr As Range findit = "" For Each rr In r If rr.Value = v Then findit = rr.Address Exit Function End If Next End Function