insanity82007
Board Regular
- Joined
- Oct 10, 2007
- Messages
- 130
How do I do this?
If the value exists in the named range I want to use an if statement to do something but I'm not sure how to find a value in the named range.
I tried this but it didn't work:
If the value exists in the named range I want to use an if statement to do something but I'm not sure how to find a value in the named range.
I tried this but it didn't work:
Code:
For Each Value In Range("DropListCC")
If Value = Sheet1.Range("e5").Value Then
Exit For
Else
Sheet1.Range("e5").Value = ""
End If
Next