+ Reply to Thread
Results 1 to 6 of 6

checkbox to change cell color

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    West Sussex
    MS-Off Ver
    Office 365
    Posts
    84

    checkbox to change cell color

    On the attached spread sheet I am looking for a code so that if the checkbox's are ticked the corresponding cell background will change to light grey. Also a code so that when I print the checkboxes do not show up.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: checkbox to change cell color

    You can do all of this without VBA.

    For Q #1 >> Right click on the checkbox >> Format Control >> Control tab >> Cell link: >> assign a cell link

    If you check the checkbox, the cell will show TRUE, and if not checked, FALSE

    Now just apply conditional formatting to change the background color to light grey when the linked cell show TRUE

    For Q #2 >> When you are in the Format Control dialogue box >> Properties tab >> Uncheck Print Object
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    03-22-2013
    Location
    West Sussex
    MS-Off Ver
    Office 365
    Posts
    84

    Re: checkbox to change cell color

    thanks for your help. Can I stop it saying TRUE or FALSE as I want to select the name and then tick the checkbox

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: checkbox to change cell color

    If I'm understanding you correctly, you will use the drop down in cell B18 to select a name and then check the checkbox.

    Where did you link the checkbox too? If we are speaking of the cell B18 checkbox, make the cell link to a cell out to the right, say K18.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: checkbox to change cell color

    Hello mezza89,

    Why use a Checkbox combined with a DropDown? If the Cell is populated via the DropDown, you can get the desired result of shading the Cell. You do not need both, i.e: CheckBox and DropDown.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: checkbox to change cell color

    Hello mezza89,

    Please see the attached WorkBook to illustrate my reason.
    Attached Files Attached Files

+ 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. Change graph color using a checkbox
    By q_awan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2012, 07:37 AM
  2. Excel 2007 : change color bij clicking checkbox ??
    By wartender in forum Excel General
    Replies: 1
    Last Post: 12-13-2011, 06:44 AM
  3. Dynamic Row Color Change w/ checkbox
    By BlueAcrux in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2008, 09:39 AM
  4. How to make checkbox change cell color?
    By walkingthecow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2008, 12:19 PM
  5. Replies: 2
    Last Post: 01-27-2006, 08:15 AM

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