Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:43:26+00:00 2026-05-31T13:43:26+00:00

I have 2 checkboxes, what i want to do is when i select one,

  • 0

I have 2 checkboxes, what i want to do is when i select one, the other 1 will be deselected, which means user will not have the ability to select it the other checkbox. I was wondering if it is possible to do so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:43:27+00:00Added an answer on May 31, 2026 at 1:43 pm

    Yes it is possible. But why not use an option button instead?

    Anyways to answer your query.

    Private Sub CheckBox1_Click()
        If CheckBox1.Value = True Then
            CheckBox2.Value = False
            CheckBox2.Enabled = False
        Else
            CheckBox2.Enabled = True
        End If
    End Sub
    
    Private Sub CheckBox2_Click()
        If CheckBox2.Value = True Then
            CheckBox1.Value = False
            CheckBox1.Enabled = False
        Else
            CheckBox1.Enabled = True
        End If
    End Sub
    

    FOLLOWUP

    Thanks for the fast update! what is the difference between a checkbox and option button? I thought they do the same thing? – user1204868 48 secs ago

    Excel VBA Option Buttons (Also known as radio buttons) are the same as Check Boxes except that Option Buttons are dependent on each other while Check Boxes are not. When you check one Option Button the other Option Button will automatically get unchecked.

    See the snapshot below on how they look 🙂

    Would recommend seeing the Excel’s inbuilt VBA help for more details 😉

    SNAPSHOT:

    enter image description here

    HTH

    Sid

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-select checkbox. Depending on which one is checked, I want to
I have number of checkboxes and another checkbox for Select All I want to
i'm want to have a repeater generate a bunch of checkboxes, e.g.: <tr><td><input type=checkbox
I have created a gridview with a column of checkboxes. I want the user
I want to have a checkbox for terms and conditions, label of which should
I have a celltable in GWT which have checkboxes, to select multiple checkboxes i
I want to write a selector which will select 1. Input elements of type
i have three checkboxes in my preference screen. i want to make the user
I have a table, containing a checkbox to select the whole row (or not).
I have written one JavaScript function which would rise the event when the User

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.