Get character name in word VBA

Here i am want to get the character names in word by using VBA. For example

Note:

ASC() and ASCW() is used to get character values (eg: asc("a") = 97), like as is there is any method to get the character name or else?

enter image description here

Upvotes: 2

Views: 491

Answers (1)

Tom Collins
Tom Collins

Reputation: 4069

Here you go.

With this table, you can take each character one at a time, and compare it to the table I listed. So, if you had an å, then using ASC(å) you'd get 229, then do a lookup on your table and you'll get "Latin small letter a with ring above".

Repeat with each letter.

Upvotes: 3

Related Questions