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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting unicode characters

Status
Not open for further replies.

jordanh

Technical User
Nov 11, 2002
47
GB
hi,

Is there any way of inserting a unicode character by its u/c id (eg 'fb01')?

I'm setting up some keyboard shortcuts for characters such as the degree symbol, angled brackets and fi/fl ligatures using macros similar to this ...

Sub dguilll()
Selection.TypeText Text:="«"
End Sub

with the double guillemot copied and pasted for Win 2000 character map. If I try and do this with some symbols however (eg fi/fl ligatures, unicode fb01 and fb02) it just pastes a question mark in to the VB editor.

Does anyone know a way of replacing "symbol" with its unicode character reference? (note, Chr(fb01) doesn't work).

Thanks in advance for your help.

jordan
 
Try CHR$(the ascii decimal value of the character)

Example: CHR$(65) returns the capital letter "A"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top