Excel VBA: Select Case if ActiveCell like “*string*”
I'm working on a macro that takes the current value of the ActiveCell and changes that value based on a select case. However, I am unable to determine if the ActiveCell contains a wild card string. I am not sure if my syntax is correct. How can I get my select case to compare? Select Case ActiveCell.Value Case ActiveCell.Value Like "*string*" ActiveCell.Value = "contains string" End Select It is possible to use wildcards. Keep these two things in mind: First, string comparison expressions evaluate to a Boolean data type (True/False); Second, per the developer reference for the Select...Case