Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I suspect the following macro is what you are looking for?
Sub ANSIValue() S1$ = "Because the selected text contains" S2$ = " characters, not all of the ANSI values will be displayed." S3$ = "ANSI Value (" S4$ = " characters in selection)" S5$ = " character in selection)" S6$ = "Text must be selected before this macro is run." S7$ = "ANSI Value" Dim strSel, strNums, LastFourChar As String Dim iPos As Integer strSel = Selection.Text If Len(strSel) 0 Then For i = 1 To Len(strSel) strNums = strNums + Str(Asc(Mid(strSel, i))) Next i strNums = LTrim(strNums) If Len(strNums) 255 Then LastFourChar = Mid(strNums, 252, 4) strNums = Left(strNums, 251) + Left(LastFourChar, 4 - InStr(" ", LastFourChar)) MsgBox S1$ + Str(Len(strSel)) + S2$ End If If Len(strSel) = 1 Then S4$ = S5$ MsgBox strNums, 0, S3$ + LTrim(Str(Len(strSel))) + S4$ Else MsgBox S6$, 0, S7$ End If End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org marok wrote: Is there a way of getting Word to disclose the escape code of a displayed character? |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I find the product key code | Microsoft Word Help | |||
how do i find the key code for microsoft office 2007? | Microsoft Word Help | |||
Search code used in the Find What box is not recognized. | Microsoft Word Help | |||
How do you escape the find search in Microsoft Office Word 2003? | Microsoft Word Help | |||
find product code key | Microsoft Word Help |