finding "♂" character in a worksheet

D

davids

is there a function i could use to find all the "♂" characters in a
worksheet? a standard search does not work as excel returns an error messages
saying it can't find the data we're searching for
 
T

Toppers

Look for chr(63) ......

With Worksheets(1).Range("a1:a500")
Set c = .Find(Chr(63), LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
MsgBox c.Address
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With

End Sub


HTH
 
D

Dave Peterson

If the character is a question mark(?), then use ~?.

The question mark is a wild card. The tilde in front tells excel to really look
for that question mark character.
 
Top