I am attempting to incorporate some error checking in my code to check for cells containing "#NA", which otherwise cause problems for my code below. My first attempt: rng5.Errors.Item(xlEvaluateToError), runs but does not work. Does anyone know why?
For Each rng5 In History1Column
If rng5.Errors.Item(xlEvaluateToError) = True Then GoTo NextRng5
If Mid(LCase(Trim(rng5.Value)), 1, 7) = "service" Then SP = rng5.Offset(0, 1).Value
If Mid(LCase(Trim(rng5.Value)), 1, 15) = "max 30 day ip =" Then MaxIP = rng5.Offset(0, 1).Value
NextRng5:
Next rng5
Thanks,
Paul H.
Denver
For Each rng5 In History1Column
If rng5.Errors.Item(xlEvaluateToError) = True Then GoTo NextRng5
If Mid(LCase(Trim(rng5.Value)), 1, 7) = "service" Then SP = rng5.Offset(0, 1).Value
If Mid(LCase(Trim(rng5.Value)), 1, 15) = "max 30 day ip =" Then MaxIP = rng5.Offset(0, 1).Value
NextRng5:
Next rng5
Thanks,
Paul H.
Denver