Hi ManAlive,
Can't you just do it with a group box? I thought that if you use them, then they can only have one value selected? I'm sorry I can't say more, but I rearely use forms.
Cheers!
MalicUK.
Main Topics
Browse All Topics
I've got a set of 81 toggle buttons, within which I only want one toggled at a time. That is, when another button is selected, the currently depressed one will become unselected. How do I code this without having to write a click event macro for each toggle button?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
KevinSmith, yeah, option button would do it easily, but I want to colour each button to mimic the colour palette selection. I believe using the normal colour palette makes you immediately colour some cells, but I just want the user to select a colour and for the VBA to capture which colour was selected, using it later in the code.
MalicUK, I was surprised when I tried to group them and it didn't do it, I thought it would behave the same as the option buttons do, but it still lets you select as many as you like, unless there's another setting I'm missing.
ManAlive,
I was entralled by this problem and I found this, after doing quite a bit of searching I think this is your best option.
http://support.microsoft.c
Sorry its a KB, maybe someone else has a more workable solution.
Kevin
Business Accounts
Answer for Membership
by: kevinsmith121Posted on 2005-02-08 at 06:20:27ID: 13254156
I think what you want to do is use "Option buttons" from the Control Toolbox
When you do you will see they have a property (Right click on them and go to Properties) that says Groupname
If you set this property to the same for each option button they become grouped and you can only select one at a time.
Regards
Kevin