hexadecimal mathematics

  • Thread starter Thread starter vikas
  • Start date Start date
Just subtract the numbers

a = &H22
b = &H33
c = b - a
MsgBox ("Answer: " & c & ", Hex Answer: " & Hex(c))

The answer above is 17 decimal, which is &H11. You need to format the 17 as
a Hex Number using the Hex function
 

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

Similar Threads


Back
Top