Disable CheckBox on UserForm in Excel depending on selections

Hi Experts!

I have a Userform in Excel (2007) with several check-boxes on it. For example, there are 2 categories, each with 5 check-boxes under it. The user needs to check one from checkbox 1-5 (category 1) and one from checkbox 6-10.

Upon selection from any of the checkboxes 1-5, say number 2, then checkbox 1,3,4 and 5 should become disabled.

Many Thanks for the Advice!
hendrkleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello hendrkle,

if a user is allowed only one choice out of many, then typically radio buttons are used instead of check boxes. A group of radio buttons will only allow one of the group to be selected. Check boxes are typically used to allow more than one selection in a group.

cheers, teylyn
0
hendrkleAuthor Commented:
Thanks teylyn, I don't mind using radio buttons but I run into the problem that only one can be selected, even if I group them into two groups, only 1 from both groups can be selected. However, I wish to have several groups and from each group only one may be selected, so 1 per group but several per userform.
0
nutschCommented:
Not for points: I agree with teylyn: you have to put two frames on your userform and put the option buttons in the frames, then you're all set.

Thomas
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

nutschCommented:
the groupname doesn't matter, only the frame determines the grouping.
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
See attached

cheers, teylyn
scratch.xls
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hendrkleAuthor Commented:
Apologies for the delay - it was the in the middle of the night here.

Thanks both for providing the solution to my problem (adding a frame). As requested, all points to teylyn.
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Thanks, hendrkle!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.