+ Reply to Thread
Results 1 to 4 of 4

checkbox to command value change

  1. #1
    Registered User
    Join Date
    01-10-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    77

    checkbox to command value change

    I created a checkbox and placed it at the end of each row of a table.

    Once I check it off, I would like the value in cell M16 to change to zero, and the cells from N16 to Q16 to clear the values within them and change color (black).

    What the VBA code would be for something like this?

    I hope this is clear.

    Your help would be much appreciated.

    Thanks

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: checkbox to command value change

    Is it a Forms or ActiveX control? Forms controls require that a macro be attached. ActiveX control's code is located in the sheet they are on. The Developer tab is an easy way to edit your controls.

    Is the font color or interior cell's color changed to black?

    Be sure that your control's top left corner is within the cell. A zoom view might be needed to ensure that.

  3. #3
    Registered User
    Join Date
    01-10-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    77

    Re: checkbox to command value change

    Its Active X. Lets make it easier. Once I check the box off (cell r16), I would like the entire row to turn green (A16:Q16).

    Thanks

    S

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: checkbox to command value change

    Right click the sheet's tab, View Code, and paste. Add more checkbox subs to suit like 1 and 2.

    Please Login or Register  to view this content.

+ 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. Protect the sheet but the form checkbox still can be change and sort by checkbox
    By carolyn1221 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 01:08 PM
  2. checkbox and command box
    By curiouscat8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2013, 07:39 PM
  3. [SOLVED] How do I change a checkbox to unchecked without running the code within the checkbox
    By jsunnb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2012, 09:28 PM
  4. Do - command for all Checkbox checked
    By volar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2012, 05:52 AM
  5. clearing a checkbox wth command button
    By shakey775 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2012, 05:37 PM
  6. Command Button to clear checkbox
    By zplugger in forum Excel General
    Replies: 2
    Last Post: 06-26-2011, 09:36 AM
  7. deleting a row with checkbox and command button
    By student123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2005, 02:19 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