+ Reply to Thread
Results 1 to 3 of 3

VBA macro to convert decimal to hex and back

  1. #1
    Registered User
    Join Date
    11-12-2007
    Posts
    3

    VBA macro to convert decimal to hex and back

    I'm a novice at using macros in excel and I need to convert 3 columns and 255 rows of decimal numbers into hexidecimal numbers. I've done the easy part and created buttons on my excel sheet, one button to convert to hex and the other to convert back to decimal. Can anyone help me with the VBA code to get these buttons working?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello bryce,

    What have you written so far? I am asking because it isn't clear to me what you have done code wise. It will be easier and faster to answer your question if you post your code.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    12-02-2011
    Location
    Milton Keynes, UK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Red face Re: VBA macro to convert decimal to hex and back

    You don't need a macro. Try the built-in functions HEX2DEC and DEC2HEX.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1