Results 1 to 7 of 7
  1. #1
    lynda hunt
    Guest

    Word 2000 Find and Replace Symbol Character (SR - 1)

    I need to find a symbol character within a document the windows character set number is Alt 0168 with font set to symbol. As it will not let me find it through the normal find and replace option I am going to have to hard code it in. Any suggestions would be helpful

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    You can use the macro below to find that character (is it the
    two dots above a letter, like a sideways colon?) You should
    be able to copy and paste, but if you need to enter the
    character directly, just do an ALT-0168 between the quotes
    on the FindText line.

    <pre>Sub TestFind()
    With Selection.Find
    .ClearFormatting
    .MatchWildcards = True
    .Forward = True
    .Wrap = wdFindStop
    .Execute Findtext:="
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    Unfortunately, Kevin's search won't work. Word2000 uses Unicode, and since it has no chance to determine the right Unicode number for "decorative" fonts (Symbol-, Wingdings-, old foreign language fonts ...), <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15> it will put these characters in a code page starting at &HF000 (hexadecimal) = 61440 (decimal).

    So you could find that character by searching for ^u61608 (61440+168).

    BTW: this will even find Symbols from decorative fonts that are inserted from the "Insert > Symbol" dialog, even though running
    <pre>MsgBox AscW(Selection) </pre>

    will report a code of 40 for such symbols.

    Searching for [Alt61472-Alt61695] with wildcards will find any character from decorative fonts, if you type AltXXXX by holding the Alt-key and typing the numbers on the numeric keypad (NumLock must be on).


    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Greetings, Klaus

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    Klaus,

    That's great info. Where in the world did you dig up all that?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    Another rabbit hole of learning. Start at the surface and follow it down, past Alice and all her friends till you come out in China which has its own millions of rabbit holes...
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    More leads:

    <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=wrd&Number=23114>http://www.wopr.com/cgi-bin/w3t/showthread...rd&Number=23114</A>

    <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=wrd&Number=20368>http://www.wopr.com/cgi-bin/w3t/showthread...rd&Number=20368</A>

  7. #7
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2000 Find and Replace Symbol Character (SR - 1)

    **Edited by BAM to include URL tags]

    I started with an article by Dave Rado:
    <A target="_blank" HREF=http://www.mvps.org/word/FAQs/MacrosVBA/FindReplaceSymbols.htm>http://www.mvps.org/word/FAQs/MacrosVBA/Fi...laceSymbols.htm</A>

    The rest I figured out on my own, but later discovered that others (for example David Foster, whose postings on microsoft.public.word.vba97 from 1998 I found at www.google.com) knew about it for years.

    I love Unicode -- it makes life a lot easier for people that have to deal with multilingual documents. Those old decorative fonts (that don't use Unicode) are a lot of trouble, and I try not to use them if at all possible. In most cases, you will find the needed special characters in "Lucida Sans Unicode" or "Arial Unicode MS", or even in the standard WGL4-fonts like Arial or TNR.

    You can easily spot the "decorative" fonts in the "Insert > Symbol" dialog: they don't have subsets.

    The Alt-trick (which works in all dialog boxes) I discovered by accident (I use Alt-0XXX a lot, and because of clumsy fingers often typed a number too many <img src=/S/bummer.gif border=0 alt=bummer width=15 height=15>). This method doesn't work in Word97 (so I've been told), and you have to hit any key to make the character appear if the code is divisible by 256 -- that probably is the reason why it is not documented by Microsoft.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •