+ Reply to Thread
Results 1 to 3 of 3

[SOLVED] Want to shade cell when checkbox is checked

  1. #1
    Registered User
    Join Date
    01-01-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Question [SOLVED] Want to shade cell when checkbox is checked

    I have with help figured out how to link a check box to a cell and using an array formula subtract total when a check box is checked or add that total back if it is unchecked. As you can see from the Attachment. This was done by "Richard Buttrey" Thanks again for putting me on the right track for this formula and solution. This was the perfect way to solve my problem as I cannot code in VBA so macros are beyond me. My question now, Is there a way to have the cell containing the check box and amount, to shade itself another color when the check box is checked. Then change back when the check box is unchecked.

    Thank you in advance for all the help, as I learn new concepts with Excel I appreciate the program even more.
    Attached Files Attached Files
    Last edited by oneuglydude; 01-02-2015 at 07:55 PM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Want to shade cell when checkbox is checked

    Create a name range as "CheckBoxResult" for data Range "$B$4:$B$7 of Sheet2
    next
    select the range from $B$4:$B$7 of Sheet1
    In conditional format Select "Use a formula to determine which cells to format" from Select a Rule type
    then copy the below formula in Edit the rule description
    =INDEX(CheckBoxResult,ROWS($B$4:$B4))=TRUE
    then format the cell with liked color
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Using Application.Caller

    See attached,
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by davesexcel; 01-02-2015 at 08:17 AM.

+ 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. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  2. [SOLVED] VBA code to uncheck checkbox 2 & 3 if checkbox 1 is checked
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 03:10 AM
  3. Replies: 4
    Last Post: 02-04-2011, 06:00 AM
  4. VB checkbox checked?
    By prowsdower in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2009, 12:05 PM
  5. How to have Checkbox A uncheck with checked Checkbox B
    By Texas Aggie 09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2007, 09:29 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