Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ChrW for Unicode ?

Status
Not open for further replies.

TaintedFlames

Programmer
Jan 28, 2005
66
CA
Hi,
I'm having problem with a dash. It's a "tiret d'union". The problem is I don't know how to find it. It looks exactly like a normal dash. It's Unicode # is U+0020 , which isn't even on the character map! I also tired to copy paste into my code, but unless you have rich text support you can't see it.

Thanks for the help!

Jay
 
Hi,

Insert the character into your document.

Select the character.

In the VB Editor, use Add Watch of use a MsgBox to display the ascii value of the character.

Does this help?

Skip,

[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue]
 
Hi Skip,
I'm not sure, I fully understand. You want me to paste the dash in watch? Cause I can't paste it anywhere...
Or do you want me to make a macro that displays the acsii code of the character.

Jay
 


Don't remember saying anything about paste. The latter is what I suggested.

Skip,

[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue]
 
Hi Skip,
Sorry, I forgot to mention, it's not an normal dash. So I dunno how to get it normally. It gets formatted by word that way. It looks EXACTLY the same though. I'm really bummed on this...

Thanks for your help.



Jay
 


Did you try macro recording the formatting process?

Skip,

[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue]
 
You lend me down the right path. I looking to re-create it, and it was coming out the same. So I tired looking for it, and found the option in word's find "non-breaking hyphen" which found. So I matched the patern it used to find it ("^~").

:D

Thanks skip!

Jay
 
If you know the Unicode number, at least with Word 2002 (XP), you can convert typed numbers directly into a document and convert to Unicode by:

typing in the number U+0020
pressing Alt-X

by code:

Selection.TypeText Text:="U+0020"
Selection.ToggleCharacterCode

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top