Detecting if a character is a symbol
We wish to detect if a selected character in a Word document is a Symbol. If you use the insert symbol menu to put in, say, a greek mu then select the character, the VBA code
asc(selection.range.text) returns the value 40
and the VBA code
selection.range.font.name returns "Times new Roman" if the surrounding text uses TImes New Roman
Asc 40 in TImes new Roman is the character (
Therefore we are unable to detect programmatically that one of the characters is a greek mu but one of the characters is a (
Any suggestions?
|