Graham
Mon May 22 23:44:42 CDT 2006
It works for me. The registered trademark symbol ® is at character 174.
You can also search for it with the standard replace tool by searching for
^0174
irrespective of whether it is in TNR or Arial.
You may find the following macro useful as an aid to identifying the
character numbers:
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 As String
Dim strNums As String
Dim 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
See
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
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site
http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>.
Bob Stringer wrote:
> "Graham Mayor" <gmayor@mvps.org> wrote:
>
> Back with another question. Two, actually.
>
> First, although the Find Symbol dialog now appears, I'm
> having trouble finding what I need to: e.g., the registered
> trademark symbol in documents which are in my default font,
> Times New Roman.
>
> When I open the FindSymbol dialog box and click the Symbol
> button under "Find what" (which opens Symbol dialog box),
> click on a symbol and then Insert, if the font to be search
> for is "(normal text)", instead putting the symbol in the
> Find What area, it produces this message: "Use Edit/Find
> Replace to search for characters in the Normal Text format."
> As a result, I can't search for the registered trademark
> symbol as it appears in normal text. I can switch to another
> font -- such as Arial -- for the thing to be search for, but
> registered trademark symbol in Arial is different than the
> one in Times New Roman, the symbol in my document isn't
> searched for.
>
> If I change the font in the *document* to Arial, and then go
> through the same process, everything works fine. I can use
> the Find Symbol dialog box to search for symbols in Arial.
> But the thing is, I prefer working with Times New Roman, and
> for some reason searching in that font doesn't seem
> possible, as far as I can tell.
>
> Second, FindSymbol, to the extent it does work for me so
> far, appears to be set up only to look for symbols and
> replace them with either symbols or text. It doesn't seem to
> be able to search for text in order to replace it with
> symbols. Is that possible, or do I need to look for a
> different solution in order to do that?
>
> Thanks again.