Reveal code

J

John Hatten

Is there a way in Word 2000 to find out the ASCII code for
a character? From time to time I want to clean up a
document that has some garbage characters and after
searching/replacing ^0 through ^20 I give up. It would be
nice to be able to just get the code and be able to zap it.
In Word 2002 I was told that Alt-x works...

Thanks!!!
 
D

Doug Robbins - Word MVP

Hi John,

If you run a macro containing the following command it will tell you the
Ascii Code for the first selected character.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jay Freedman

It looks like Doug forgot to put in the command, which is

MsgBox Asc(Selection.Text)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top