Results 1 to 3 of 3

Thread: Hex

  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hex

    How do i change a variable that is populated with a hex value into a decimal value please. All i can find is the conversion from decimal to hex - the opposite of what i require.[img]/w3timages/icons/mad.gif[/img]

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Hex

    Hi,
    You can do that with the Val function but you need to prefix your hex value with "&H" - e.g. Val("&HA") returns 10.
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hex

    Perfect - thank you.[img]/w3timages/icons/laugh.gif[/img]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •