+ Reply to Thread
Results 1 to 3 of 3

Disableing a check box when another is checked

  1. #1
    Registered User
    Join Date
    01-27-2005
    Location
    Northern VA
    Posts
    16

    Disableing a check box when another is checked

    I have created a spread sheet that combines several option for a house into one total. I have used checkboxes to pull the numbers into a "Master Sheet" but I would like to have certain checkboxes unavalibe if others are checked so you can not pick options that do not work together. I know nothing about VBA but would like to figure this one out. It's in Excel 2003

  2. #2
    Forum Contributor
    Join Date
    01-11-2004
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    388
    Hi!

    You could start here:

    Open the Visual Basic help file (right click on a sheet tab: select View Code: press F1 or use the Help button.

    Enter Checkbox and search. Among the items offered you should find Checkbox Control (Forms).

    Probably enough to get you going. Come back if it raises problems.

    Alf

  3. #3
    Registered User
    Join Date
    01-27-2005
    Location
    Northern VA
    Posts
    16
    Thanks that was a start. But I found this which disable one and enables the other.

    Private Sub CheckBox2_Click()

    If CheckBox2.Value = True Then
    CheckBox3.Value = False
    CheckBox3.Enabled = False
    CheckBox7.Enabled = True
    CheckBox7.Value = False
    Else
    CheckBox3.Enabled = True
    CheckBox3.Value = False
    CheckBox7.Enabled = False
    CheckBox7.Value = False
    End If

    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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