Results 1 to 2 of 2

Thread: how do i convert numerical numbers into hex letters?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    how do i convert numerical numbers into hex? and Visa Versa
    NXSupport - Your one-stop source for computer help

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Try this:
    Code:
    Private Sub Command1_Click()
        Dim strHex As String
        
        'To convert to Hex
        strHex = "&H" & Hex(125) 'use any number
        MsgBox strHex
        
        'To convert back to decimal
        MsgBox CLng(strHex)
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width