Hi,
Can anyone help please.
Im trying to write a vb macro that converts a number to a hex value.
In an Excel soreadsheet the DEC2HEX() func works fine...as follows
A B C D
------------------------------------------------
No. Decimal DEC2HEX(B2) concate("output_",C2)
------------------------------------------------
2 347682 54E22 output_0x00054e22.html
3 347683 54E23 output_0x00054e23.html
but when I try .Cells(i, 3) = Hex(.Cells(i, 2)) in Vb
my output is this
A B C D
--------------------------------------------
No. Decimal HEX Filename
--------------------------------------------
2 347682 5.40E+23 output_0x005.4E+23.html
3 347683 5.40E+24 output_0x005.4E+24.html
vb doesnt recognise the Excel DEC2HEX function, so is there a way of produce the desired output of 54E22 rather than 5.40E+23?
Thanks,
Evan
Can anyone help please.
Im trying to write a vb macro that converts a number to a hex value.
In an Excel soreadsheet the DEC2HEX() func works fine...as follows
A B C D
------------------------------------------------
No. Decimal DEC2HEX(B2) concate("output_",C2)
------------------------------------------------
2 347682 54E22 output_0x00054e22.html
3 347683 54E23 output_0x00054e23.html
but when I try .Cells(i, 3) = Hex(.Cells(i, 2)) in Vb
my output is this
A B C D
--------------------------------------------
No. Decimal HEX Filename
--------------------------------------------
2 347682 5.40E+23 output_0x005.4E+23.html
3 347683 5.40E+24 output_0x005.4E+24.html
vb doesnt recognise the Excel DEC2HEX function, so is there a way of produce the desired output of 54E22 rather than 5.40E+23?
Thanks,
Evan