I am getting while trying to invoke VBA code. Which was working fine before and all of sudden error comes in.

Code is converting negative to 0 on column H. I am using excel process scope activity.
Sub ConvertNegativesToZero()
Dim ws As Worksheet
Dim col As Range
Dim cell As Range
' Set the worksheet to the one containing your data
Set ws = ThisWorkbook.Sheets("Sales and Compare")
' Set the column to the one you want to modify
Set col = ws.Range("H2:H" & ws.Cells(ws.Rows.Count, "H").End(xlUp).Row)
For Each cell In col
If cell.Value < 0 Then
cell.Value = 0
End If
Next cell
End Sub