Thanks.
Long value was probably a poor choice of words. As I have said before, I
have no formal training in VBA.
Perhaps more correct, the .InsertSymbol method requires a long data type
for the character number argument.
Data type: The characteristic of a variable that determines what kind of
data it can hold. Data types include Byte, Boolean, Integer, Long, Currency,
Decimal, Single, Double, Date, String, Object, Variant (default), and
user-defined types, as well as specific types of objects.
<Long: Long (long integer) variables are stored as signed 32-bit (4-byte)
numbers ranging in value from -2,147,483,648 to 2,147,483,647.
Is it the decimal equivalent of the Unicode hex number?
I think basically yes. If you pass "A" as an argument to the function
returns 10. If you pass "1A" is returns 26, ect.
Sub GetLong()
MsgBox ConvertHexToLong("A")
End Sub
Function ConvertHexToLong(ByVal hex) As Long
ConvertHexToLong = Val("&H" & hex & "&")
End Function
The only reason I mention this VBA method is there has been a two people
that have asked me to add their frequently used symbols to a customized
ribbon gallery.
--
Greg Maxey
See my web site
http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.
MS Mincho is the factory-default font for Chinese etc.; all the
Chinese etc. fonts seem to have a lot of the "Mathematical
Operators." (Check with BabelMap.) TNR, annoyingly, doesn't have most
math characters -- especially annoying when you need true super/
subscripts!
If you're never going to type in Chinese etc., you can Uninstall the
Chinese etc. fonts from your Fonts folder.
I don't know what a "Long" value is. Is it the decimal equivalent of
the Unicode hex number?