Convert Hex to Number

T

Tony

I know how to Convert a Number to Hex, but I cannot find
how to convert a Hex Field to a Number.

MyNum = 170
MyChar = Hex(MyNum) will give me a AA answer which is
correct, but how do I convert "AF" to a number?

Thank You in Advance

Tony
 
T

Tim Ferguson

I know how to Convert a Number to Hex, but I cannot find
how to convert a Hex Field to a Number.

MyNum = 170
MyChar = Hex(MyNum) will give me a AA answer which is
correct, but how do I convert "AF" to a number?

dwMyLong = CLng("&H" & strMyChar)

HTH


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top