Hi,
who knows a fast and easy way to convert a hex number into a decimal number.
Printable View
Hi,
who knows a fast and easy way to convert a hex number into a decimal number.
use VAL but make sure that your number is prefixed by "&H"
ie
dim Hexnumber,decnumber
hexnumber=hex(15)
decnumber=val(hexnumber)
'this will return 0
'but if you do this
hexnumber="&H" & hexnumber
decnumber=val(hexnumber)
'this will return 15
Hope this helps