ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   finding "™‚" character in a worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/78819-finding-%E2%99%82-character-worksheet.html)

davids

finding "™‚" character in a worksheet
 
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

Toppers

finding "™‚" character in a worksheet
 
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
"davids" wrote:

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


Dave Peterson

finding "?" character in a worksheet
 
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.

davids wrote:

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


--

Dave Peterson


All times are GMT +1. The time now is 06:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com