+ Reply to Thread
Results 1 to 4 of 4

Converting cell colors to hex code

  1. #1
    Registered User
    Join Date
    09-23-2007
    Posts
    2

    Converting cell colors to hex code

    Hi everyone!

    I have attached a picture of how my document looks: one column of colors and right next to it, a column of color names. I want the colors from the colors column to be replaced with their hex code.

    Ex:
    #ffffff | white
    #000000 | black

    Does anyone know how can I do that?
    Attached Images Attached Images

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe some code

    Select your range then run macro. Link shows you were to place code

    http://www.contextures.com/xlvba01.html#Regular

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    09-23-2007
    Posts
    2
    It works!!

    Thank you very much VBA Noob, I have searched alot for something like this but couldn't find anything. Thanks again!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    Code adapted from this site

    http://www.mvps.org/dmcritchie/excel/colors.htm#chart

    VBA Noob

+ 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