Alphaba1
New Member
- Joined
- Oct 23, 2024
- Messages
- 3
- Office Version
- Prefer Not To Say
- Platform
- Windows
I have a spreadsheet with numerous checkboxes in Row A. I have created a reset button to uncheck the buttons, however I can only find a code for macros that will reset ALL the checkboxes. I do not want the checkbox in cell A26 to reset when the button is pressed. Is there a way to exclude specific checkboxes? I am a complete newbie, so apologies if the answer is an obvious one. Thankyou.
Below is the code I have:
Below is the code I have:
VBA Code:
Sub ResetDataClearCB()
For Each cb In Worksheets("COMMERCIAL").checkboxes
cb.Value = x1Off
Next
End Sub
Attachments
Last edited by a moderator: