indi visual
Member
I'm faced with a 25 max limit line continuation problem (20 or 25 somethin' like that).
I can write this out line for line breaking it up into 25 max increments, but some of these lines are very similar and can be searched for using wildcards much easier (to knock out several searches at a time) -which would save me sometime writing out a bunch of grouped up continuations.
I've been searching online, and I've found so far InStr can't search for wildcards.
My questions is how do I achieve this anyway, what is my work around for wildcard searches?
''This WORKS (no wildcard just straight text ".findme ")
Dim SpecificText As Boolean
endrange = Range("A65536").End(xlUp).Row
For i = 1 To endrange
SpecificText = InStr(Range("A" & i).Value, ".findme ")
If SpecificText = True Then
MsgBox "Specific Straight Text Found"
End If
Next i
'This DOES NOT (it tries to look for wildcard using ".find?? ")
Dim SpecificText As Boolean
endrange = Range("A65536").End(xlUp).Row
For i = 1 To endrange
SpecificText = InStr(Range("A" & i).Value, ".find?? ")
If SpecificText = True Then
MsgBox "Specific Text Using Wildcard Found"
End If
Next i
I can write this out line for line breaking it up into 25 max increments, but some of these lines are very similar and can be searched for using wildcards much easier (to knock out several searches at a time) -which would save me sometime writing out a bunch of grouped up continuations.
I've been searching online, and I've found so far InStr can't search for wildcards.
My questions is how do I achieve this anyway, what is my work around for wildcard searches?
''This WORKS (no wildcard just straight text ".findme ")
Dim SpecificText As Boolean
endrange = Range("A65536").End(xlUp).Row
For i = 1 To endrange
SpecificText = InStr(Range("A" & i).Value, ".findme ")
If SpecificText = True Then
MsgBox "Specific Straight Text Found"
End If
Next i
'This DOES NOT (it tries to look for wildcard using ".find?? ")
Dim SpecificText As Boolean
endrange = Range("A65536").End(xlUp).Row
For i = 1 To endrange
SpecificText = InStr(Range("A" & i).Value, ".find?? ")
If SpecificText = True Then
MsgBox "Specific Text Using Wildcard Found"
End If
Next i