ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disabling a 'Group' of OptionButtons (https://www.excelbanter.com/excel-programming/288869-disabling-group-optionbuttons.html)

JimP

Disabling a 'Group' of OptionButtons
 
To All,

I Have 2 checkboxes ... and 4 Optionbuttons.
2 of the option buttons are in 1 group and the other 2 in another
group.

If CheckBox 1 is checked, then OptionButton - Group1 is eligible to
have 1 of its 2 optionbuttons selected ...
or
If CheckBox 2 is checked, then OptionButton - Group2 is eligible to
have 1 of its 2 optionbuttons selected ...

What I'm trying to do is:
If CheckBox 1 is checked, I want to disable Optionbutton - GROUP2?
or
If CheckBox 2 is checked, I want to disable Optionbutton - GROUP1?

Any help would be greatly appreciated.

Jim Pellechi

Vasant Nanavati

Disabling a 'Group' of OptionButtons
 
If you are using Frames to group the OptionButtons, if you disable a Frame,
the OptionButtons it contains will be effectively disabled (although they
will not *look* disabled). Or perhaps I have misunderstood your question.

--

Vasant


"JimP" wrote in message
m...
To All,

I Have 2 checkboxes ... and 4 Optionbuttons.
2 of the option buttons are in 1 group and the other 2 in another
group.

If CheckBox 1 is checked, then OptionButton - Group1 is eligible to
have 1 of its 2 optionbuttons selected ...
or
If CheckBox 2 is checked, then OptionButton - Group2 is eligible to
have 1 of its 2 optionbuttons selected ...

What I'm trying to do is:
If CheckBox 1 is checked, I want to disable Optionbutton - GROUP2?
or
If CheckBox 2 is checked, I want to disable Optionbutton - GROUP1?

Any help would be greatly appreciated.

Jim Pellechi




JimP

Disabling a 'Group' of OptionButtons
 
Vasant,

Thanks for replying ...

I Have 2 checkboxes: CHECKBOX1 and CHECKBOX2 ... Representing a
performance for that day: 'MATINEE' vs.'EVENING' performance

I Have 2 optionbuttons - Representing "2PM" and "3PM" Performance
start times.
I Have 2 optionbuttons - Representing "7PM" and "8PM" Performance
start times.
each in their own group

If CheckBox1 is checked, then OptionButton - Group1 is 'eligible' to
have 1 of its 2 optionbuttons Checked/Selected ...

If CheckBox2 is checked, then OptionButton - Group2 is eligible to
have 1 of its 2 optionbuttons Checked/Selected ...

After the USER selects CHECKBOX1: I need to disable Optionbutton -
GROUP2
so the USER can't select an EVENING performance start time - since the
USER clearly indicated by CHECKBOX1 that they want to attend a MATINEE
performance which is ONLY held at 2pm or 3pm.

LIKEWISE,

If the USER selects CHECKBOX2: I need to disable Optionbutton -
GROUP1
so the USER can't select an MATINEE performance start time - since the
USER clearly indicated by CHECKBOX2 that they want to attend an
EVENING performance which is ONLY held at 7pm or 8pm.

Any help would be greatly appreciated.

Jim Pellechi


"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message ...
If you are using Frames to group the OptionButtons, if you disable a Frame,
the OptionButtons it contains will be effectively disabled (although they
will not *look* disabled). Or perhaps I have misunderstood your question.

--

Vasant


"JimP" wrote in message
m...
To All,

I Have 2 checkboxes ... and 4 Optionbuttons.
2 of the option buttons are in 1 group and the other 2 in another
group.

If CheckBox 1 is checked, then OptionButton - Group1 is eligible to
have 1 of its 2 optionbuttons selected ...
or
If CheckBox 2 is checked, then OptionButton - Group2 is eligible to
have 1 of its 2 optionbuttons selected ...

What I'm trying to do is:
If CheckBox 1 is checked, I want to disable Optionbutton - GROUP2?
or
If CheckBox 2 is checked, I want to disable Optionbutton - GROUP1?

Any help would be greatly appreciated.

Jim Pellechi



All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com