AUTOMATICALLY CLEARING CHECKED BOXES

cdnqte

Board Regular
Joined
Jul 14, 2004
Messages
132
I have a spreadsheet that is designed to randomly assign groups of 4. In this sheet there are a group of 35 check boxes of which can have 24 checked at any given time. I would like to clear these boxes and set the linked cells to FALSE each time the sheet is open. Is there a way to record a macro that will clear the check boxes upon request?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
assumptions:
1. you are using check box from Forms toolbar
2 linked cells for check boxes are in E1:E35

Place a button on worksheet, place this code in module for button
Code:
Sub Button4_Click()
Dim i As Integer

For i = 1 To 35
    Cells(i, 5) = False
Next i

End Sub

You could also place code in worksheet open event.
Chas
 
Upvote 0
Wonderful! One more question (I am an amature at this..)

In that code, how do I determine which sheet? The "Clear All" button is on the main page but the data is actually on a separate sheet.

Thanks so much for your help!
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,128
Members
448,947
Latest member
test111

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