View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
KJ MAN[_2_] KJ MAN[_2_] is offline
external usenet poster
 
Posts: 27
Default Wildcard use in comparason.. Please help

Here's my code.

For Each c In myrange
If UCase(c.Value) = UCase(Artist) Then

I need the match to return * Artist *. I need to to be
an exact match, or a match with characters preceeding and/or following.
I tried
Ucase("*" & Artist & "*")
and also
Ucase(* & Artist & *)

Neither worked. Any suggestions?