VBA Checkbox sequencing

wilsonian

New Member
Joined
Jan 13, 2005
Messages
1
New here, but hope you can help. Building an app with 44 checkbox alternatives. They can be be all or some activated. Each chekbox is linked to a statement that will be printed on a form. My problem is how do I create shortcut code to address the true/false nature of each checkboxs and have it go into the next appropriate field in the form?


Private Sub Checkbox1_()
If CheckBox1 = True Then
Worksheets("D1").Range("a10,F10") = (1)
Worksheets("d1").Range("c10") = ("AD96-18-05")
Worksheets("D1").Range("c11") = ("DUE")
Else
If CheckBox2 = True Then
Worksheets("D1").Range("C10") = ("CEB-A-73-3032 ")
Worksheets("D1").Range("C11") = ("DUE")
End If
End sub


This would be fine for even 10 events, but 44? There has to be a streamlline effect for this. Please help.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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