Checkbox Question

audrey

Active Member
Joined
Jul 30, 2008
Messages
491
Hello,

I have a checkbox in Sheet1 which runs a macro once it s ticked. I want to put the same checkbox in Sheet2 that runs the same macro. My question is

1. is there away to align the checkboxes ? for example if the user ticks the one sheet1, could it automatically be ticked in sheet2 as well and vice versa ?

Thanks!

Audrey
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You could do this !!
Code:
Private Sub CheckBox1_Click()
With Sheets("Sheet1").CheckBox1
Sheets("Sheet2").CheckBox1.value = .value
End With
End Sub
and in the other sheet CheckBox
Code:
Private Sub CheckBox1_Click()
With Sheets("Sheet2").CheckBox1
Sheets("Sheet1").CheckBox1.value = .value
End With
End Sub
Regards Mick
 
Upvote 0
Thanks Mick, just a silly question I am using the old checkboxes, would that make a difference ? you know there are two of them.
 
Upvote 0
With forms check boxes you will need this:-
Change the sheet names and Check boxes to suit.
Make sure you get the Same relationship as in these codes.
Code:
Sub CheckBox2_Click()
'This is sheet 36
Sheets("sheet33").Shapes("check box 4").OLEFormat.Object.value = _
Sheets("sheet36").Shapes(Application.caller).OLEFormat.Object.value
End Sub
Code:
Sub CheckBox4_Click()
'This is Sheets 33
Sheets("sheet36").Shapes("check box 2").OLEFormat.Object.value = _
Sheets("sheet33").Shapes(Application.caller).OLEFormat.Object.value
End Sub
Regards Mick
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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