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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

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