+ Reply to Thread
Results 1 to 4 of 4

Check Color Change Macro

  1. #1
    Registered User
    Join Date
    10-20-2008
    Location
    Albany GA
    Posts
    2

    Check Color Change Macro

    Is there a way I can make my check box change color when it's checked? I'd like to have it uncolored and then turn green when checked. Not the cell, but the checkbox itself. I can't seem to make the check box part of the cell, if that would be an easier route to go please let me know. If I have to turn the cell green and not the check box, I'd love for the whole row to turn green. I attached a sample of the sheet I'm trying to build. Thanks for any help you guys can give.
    Attached Files Attached Files
    Last edited by VBA Noob; 10-20-2008 at 03:09 PM.

  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
    To do the whole row I would link the cell the checkbox to the cell e.g P5 etc and then use conditional formatting e.g
    $P5=True
    Otherwise you could try

    Please Login or Register  to view this content.
    Or if you use the form buttons you could adapt the code from here

    http://www.ozgrid.com/VBA/excel-macr...ine-button.htm

    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
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello scdve,

    You can't change the color of the check box itself. You can only change the back color of the check box container. I have added the macro shown here to the each of your check boxes. This will color the row green when it is checked and restore the row back to either the white or the clay(?) color. Download the attached file.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-20-2008
    Location
    Albany GA
    Posts
    2
    Perfect! I love both ways. Thanks for all the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lookup to check for anomaly in data
    By slipit1 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-11-2014, 05:57 AM
  2. Macro to check for changes in data
    By slipit1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2008, 04:29 PM
  3. Check Workbook
    By thundermocos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2007, 04:08 PM
  4. check for file, if available run macro?
    By xxmattnxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2007, 03:10 AM
  5. country finder lookup macro
    By theghost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2007, 10:41 PM

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