WorksheetFunction.Hex2Dec (Excel)

Converts a hexadecimal number to decimal.

If number is not a valid hexadecimal number, Hex2Dec returns the #NUM! error value.

Hex2Dec (Arg1)

Arg1: Number - the hexadecimal number that you want to convert. Number cannot contain more than 10 characters (40 bits). The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation.


Dim strHex2Dec As String
strHex2Dec = WorksheetFunction.Hex2Dec(Arg1:=)