Reveal code

  • Thread starter Thread starter John Hatten
  • Start date Start date
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!!!
 
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
 
It looks like Doug forgot to put in the command, which is

MsgBox Asc(Selection.Text)
 
Back
Top