+ Reply to Thread
Results 1 to 2 of 2

please help with vba checkboxes

  1. #1
    Registered User
    Join Date
    07-07-2019
    Location
    Camarillo, California
    MS-Off Ver
    Office 365
    Posts
    14

    please help with vba checkboxes

    I am new at this.
    I have two checkboxes with each having a different value associated with them. When both are selected I have a combined value and this part works. The issue is when I uncheck one of the boxes it does not revert to the first command and gives the value of the checked box. It remains with the combined value until both are unchecked.

    what I am looking for is to when checkbox1 is checked=a value
    when checkbox2 is checked =a different value
    when both are checked = a zero value
    (i have that and it work)
    when i uncheck one of the checkboxes and the other is checked it keeps the zero value. I want it to result in the checkbox that is checked.

    Please Login or Register  to view this content.
    Last edited by JDKrause1169; 12-15-2020 at 03:52 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: please help with vba checkboxes

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)



    After you apply code tags, please explain your code. There are four possibilities. What result do you want for each?

    Checkbox1 Checkbox2 D87 Result?
    TRUE TRUE ?
    TRUE FALSE ?
    FALSE TRUE ?
    FALSE FALSE ?
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. hiding rows which contain checkboxes but checkboxes don't hide as they should
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-08-2019, 10:26 AM
  2. Using Checkboxes to control other sets of checkboxes
    By Entregan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2018, 01:59 PM
  3. [SOLVED] Checkboxes - How to check/uncheck other checkboxes based on another checkbox
    By brooklyn_87 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-27-2017, 01:20 PM
  4. [SOLVED] Toggle between userform checkboxes for multiple pairs of checkboxes
    By L plates in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-25-2016, 06:31 AM
  5. master checkboxes to select a group of other checkboxes?
    By fael097 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2016, 03:46 PM
  6. Replies: 4
    Last Post: 04-28-2013, 12:47 AM
  7. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM

Tags for this Thread

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