Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Multi Check Boxes (Selecting Just One)

Hi;
I'm trying to figure out a way to have multiple checkboxes, but only
allowing one box to be selected. So if a user clicks on box "A", then
goes and clicks on box "B", box "B" will be selected and box "A"
automatically deselected.
Any help would be greatly appreciated.
Cheers,
Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multi Check Boxes (Selecting Just One)

Private Sub CheckBox1_Click()

CheckBox2.Value = False

End Sub


Private Sub CheckBox2_Click()

CheckBox1.Value = False

End Su

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Multi Check Boxes (Selecting Just One)

This is the inherent operation of optionbuttons. Is there some reason you
don't want to use them?

--
Regards,
Tom Ogilvy

"Kirk Lewis" wrote in message
m...
Hi;
I'm trying to figure out a way to have multiple checkboxes, but only
allowing one box to be selected. So if a user clicks on box "A", then
goes and clicks on box "B", box "B" will be selected and box "A"
automatically deselected.
Any help would be greatly appreciated.
Cheers,
Kirk



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Multi Check Boxes (Selecting Just One)

Hi Tom,
I didn't use Option Buttons because I have a series of questions, that
have 4 options per question. I can not get the 4 option buttons per
question to be independent for each question. So, I figured
checkboxes would be the way with something written in VB.
Cheers,
Kirk

"Tom Ogilvy" wrote in message ...
This is the inherent operation of optionbuttons. Is there some reason you
don't want to use them?

--
Regards,
Tom Ogilvy

"Kirk Lewis" wrote in message
m...
Hi;
I'm trying to figure out a way to have multiple checkboxes, but only
allowing one box to be selected. So if a user clicks on box "A", then
goes and clicks on box "B", box "B" will be selected and box "A"
automatically deselected.
Any help would be greatly appreciated.
Cheers,
Kirk

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Multi Check Boxes (Selecting Just One)

If from the control toolbox toolbar, then you can set the groupname property
for each group of 4. Any common and unique name is fine - such as

Question1

Question2


this will cause them to act as independent groups. note the default is the
sheetname for example, so by default they all work as one group.

--
Regards,
Tom Ogilvy


"Kirk Lewis" wrote in message
om...
Hi Tom,
I didn't use Option Buttons because I have a series of questions, that
have 4 options per question. I can not get the 4 option buttons per
question to be independent for each question. So, I figured
checkboxes would be the way with something written in VB.
Cheers,
Kirk

"Tom Ogilvy" wrote in message

...
This is the inherent operation of optionbuttons. Is there some reason

you
don't want to use them?

--
Regards,
Tom Ogilvy

"Kirk Lewis" wrote in message
m...
Hi;
I'm trying to figure out a way to have multiple checkboxes, but only
allowing one box to be selected. So if a user clicks on box "A", then
goes and clicks on box "B", box "B" will be selected and box "A"
automatically deselected.
Any help would be greatly appreciated.
Cheers,
Kirk





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Multi Check Boxes (Selecting Just One)

And if you used the option buttons from the Forms toolbar, put a GroupBox (also
from the Forms toolbar) around each group of four.

Kirk Lewis wrote:

Hi Tom,
I didn't use Option Buttons because I have a series of questions, that
have 4 options per question. I can not get the 4 option buttons per
question to be independent for each question. So, I figured
checkboxes would be the way with something written in VB.
Cheers,
Kirk

"Tom Ogilvy" wrote in message ...
This is the inherent operation of optionbuttons. Is there some reason you
don't want to use them?

--
Regards,
Tom Ogilvy

"Kirk Lewis" wrote in message
m...
Hi;
I'm trying to figure out a way to have multiple checkboxes, but only
allowing one box to be selected. So if a user clicks on box "A", then
goes and clicks on box "B", box "B" will be selected and box "A"
automatically deselected.
Any help would be greatly appreciated.
Cheers,
Kirk


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
How do i create a value for check boxes or option boxes Tim wr Excel Discussion (Misc queries) 1 February 9th 06 10:29 PM
Selecting Check Boxes shezzer_1972 Excel Discussion (Misc queries) 7 May 11th 05 01:10 AM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"