Checkbox dependent on a checkbox

broadpipe

New Member
Joined
Aug 12, 2002
Messages
36
as a final q on checkboxes -
I need to code so that if a checkbox on sheet1 is ticked then the checkbox on sheet2 is available, however when the checkbox on sheet1 is not checked, the checkbox on the sheet2 is unavailable.
This message was edited by broadpipe on 2002-08-20 07:03
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Mudface

MrExcel MVP
Joined
Feb 18, 2002
Messages
3,339
In design mode, double-click on the checkbox on Sheet1 and enter either of the following lines of code depending on whether you want to simply hide or actually disable the checkbox on sheet2. Change the Sheet2.CheckBox1 to the sheet number and checkbox number/ name as appropriate: -

Code:
Sheet2.CheckBox1.Visible = CheckBox1.Value 'hides/ shows checkbox
Sheet2.CheckBox1.Enabled = CheckBox1.Value ' disables/ enables checkbox
 

Watch MrExcel Video

Forum statistics

Threads
1,122,911
Messages
5,598,819
Members
414,260
Latest member
joishe

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
Top