Results 1 to 7 of 7
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Checkbox Enabled (XP; SR3)

    Is it possible to to control a userform's checkbox in this manner:

    Example:

    For i = 2 to 12
    Checkbox(i).Enabled = False
    Next i


    If checkbox1's value is true then the other 11 checkboxes are greyed out.

    Thanks,
    John

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Checkbox Enabled (XP; SR3)

    Why use a checkbox? This sounds like you want "option/radio buttons". Checkboxes are for selecting multiple things. Option buttons allow only 1 from the list to be selected.

    Steve

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Checkbox Enabled (XP; SR3)

    Steve,

    Good point! Unfortunately someone else designed the form using checkboxes and they don't want to use radial buttons.

    Regards,
    John

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Checkbox Enabled (XP; SR3)

    They may not want to, but they should. All Windows applications should make consistent use of the interface elements. Radio buttons are for selecting a unique option, check boxes for selecting multiple options. Do they also want the Cancel button to confirm, and the OK button to cancel?

  5. #5
    3 Star Lounger
    Join Date
    May 2002
    Location
    Mpls, Minnesota, USA
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Checkbox Enabled (XP; SR3)

    Hans,

    "Do they also want the Cancel button to confirm, and the OK button to cancel?"

    Would that be a bad thing? <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    Chuck
    Chuck Reimer
    I'm from the Government and I'm here to help...

  6. #6
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Checkbox Enabled (XP; SR3)

    Hans,

    It looks as if I'll have to put on my Salesmen's hat and try to persuade them.

    Thanks,
    John

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Checkbox Enabled (XP; SR3)

    Not on April 1st. <img src=/S/wink.gif border=0 alt=wink width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •