LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default How to detect symbol/special character code

Also

=CLEAN(A1)

removes those characters, so you can use that formula then paste special as
values over the old data

--


Regards,


Peo Sjoblom


"Peo Sjoblom" wrote in message
...
Interesting, it works for any other characters like char(10) (carriage
return)
Anyway if you do this on a regular basis you'd be better of using code,

Sub RemoveChr13()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Selection.SpecialCells(xlConstants).Replace What:=Chr(13), _
Replacement:="", _
LookAt:=xlPart, SearchOrder:=xlByColumns, MatchCase:=True
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub


Instructions on how to install macros

http://www.mvps.org/dmcritchie/excel/install.htm



--


Regards,


Peo Sjoblom





"Jeff Ingman" wrote in message
...
Thank you for your post Peo.

I tried your suggestion and got "13" as the code for the symbol I wanted
to
remove. I opened the search/replace box and typed Alt 013 and hit Replace
All. I got an error message saying "Microsoft Office Excel could not find
any
data to replace...."

"Peo Sjoblom" wrote:

If you put the particular character in a cell then use a formula like

=CODE(A1)

you will get the number for the character set for your computer, so if
you
have a space it will return 32

=CHAR(32)

will return a space

so if you want to replace CHAR(32) do ctrl + h, then in the find what
box
hold down the alt key while typing 032 on the numpad and the leave
replace
with blank the space(s) should be gone



--


Regards,


Peo Sjoblom





"Jeff Ingman" wrote in message
...
I often find symbols in MS documents I'd like to remove or replace with
something else.

Is there a way to detect the underlying code of a symbol or special
character to use for "Search and Replace"?









 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Character FARAZ QURESHI Excel Discussion (Misc queries) 2 May 18th 07 10:13 PM
Can I create a special character for the Character Map? JohnP Excel Discussion (Misc queries) 3 December 24th 06 01:10 AM
Special Character Henry Excel Discussion (Misc queries) 1 July 25th 06 01:02 PM
how to detect 5th character? nastech Excel Discussion (Misc queries) 4 October 31st 05 11:31 AM
List of Symbol and Character Number Polina Excel Discussion (Misc queries) 4 May 6th 05 12:17 AM


All times are GMT +1. The time now is 12:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"