I've written this for each loop that gives me the result I am looking for, but when I step through the code it seems to be repeating the error handler, and is therefore running pretty slow. Is there a way to make it run more efficiently?
The reason I needed error handling at all is because it is looping through values from a VLOOKUP and some cells contain an error.
For Each cell In maxStockRange
On Error GoTo ErrorValue
If cell.value = "0" Then
cell.value = ""
End If
ErrorValue:
If cell.Text = "#N/A" Then
cell.value = ""
End If
Resume Next
Next cell