Help with disabling Checkboxes dependant on previous Checkbox

McL4renF1

New Member
Joined
Aug 9, 2017
Messages
1
Apologies for the basicness (if that's a word) of this query... but I'm a VBA virgin...

I have a spreadsheet that I've designed as a questionnaire to determine the level of complexity of a project - various questions are asked with the answers weighted to provide an overall score that determines the experience of the Project Manager required to deliver it.

The first set of checkboxes identify which strategic objectives of the organisation the project is linked to. The options are:

NONE
QUALITY & SAFETY
LEADERSHIP & CULTURE
CLINICAL STRATEGY
ACCESS & OPERATIONAL DELIVERY
FINANCIAL CONTROL


What I need is for if the "NONE" option is selected the other boxes can't be (until the "NONE" option is deselected). NB - more than one of the other options can be selected.

Can anyone help ?

Thanks (in anticipation).
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Rightclick on checkbox1 (NONE)
Assign macro
New
Code:
Sub CheckBox1_Click()
If ActiveSheet.Shapes("Check Box 1").ControlFormat.Value = xlOn Then
    ActiveSheet.Shapes("Check Box 2").ControlFormat.Value = xlOff
    ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = xlOff
End If
End Sub

For the other checkboxs:
Code:
Sub CheckBox2_Click()
If ActiveSheet.Shapes("Check Box 1").ControlFormat.Value = xlOn Then
    ActiveSheet.Shapes("Check Box 2").ControlFormat.Value = xlOff
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top