Code:
Set check = dataws.Range("A:A").Find(What:=.Cells(i, 2).Value, LookAt:=xlPart).Offset(0, 1)
If Not check Is Nothing Then
.Cells(i, 13) = check.Value
Else
.Cells(i, 13) = "N/A"
End If
I thought the above would handle an error if nothing was found, the code errors on the first line saying it's not set. I know that it won't set but i want it to write N/A if it doesn't find anything. Anyone have a better way of doing it?
Thanks.