Hi, how can i get the below code to convert formulas to values?
Code:
With Sh
i = .Range("N65536").End(xlUp).Row
'Debug.Print i
theformula = "=IF(ISNUMBER(MATCH(RC[-5],[Rec_Update.xls]Asset!C4,0)),"""",""CLEARED"")"
For Each c In .Range("S8:S" & i)
'Debug.Print c.Row
cellValue = Val(CStr(c.Offset(0, -5).Value))
If cellValue > 0 Then
c.FormulaArray = theformula
Application.DisplayAlerts = False
End If
Next c
End With