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
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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
 
Upvote 0

Forum statistics

Threads
1,224,895
Messages
6,181,620
Members
453,057
Latest member
LE102024

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