Clear Check Boxes Without VBA

Vampyre

New Member
Joined
Mar 23, 2011
Messages
30
Hi, I have an autoshape , that im using as a button to clear the rest of my form. i want to use this to also clear 2 clusters of check boxes.

Im not very hot on vba and would really like to do it using a macro, any ideas ??

as simple as possible please

Cheers
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If you got your checkboxes from the developer tab, you would have the option to enter checkboxes as either Form control or ActiveX control.

Sounds like you went with the form control, if so, these two macros might work.
Just as Rorya said to set this as a new module:

to Check the box:
Code:
Sub check()
    ActiveSheet.Shapes("Check Box 1").Select
    With Selection
        .Value = xlOn
        .LinkedCell = "$J$3"
        .Display3DShading = False
    End With
End Sub

and to uncheck:
Code:
Sub unCheck()
    ActiveSheet.Shapes("Check Box 1").Select
    With Selection
        .Value = xlOff
        .LinkedCell = "$J$3"
        .Display3DShading = False
    End With   
End Sub

You can change the .LinkedCell or .Display3DShading as you prefer, might not even need them in. I'm still learning too.

Also if in doubt the macro recorder can be your best friend, once you learn how to use it.

Hope it helps!
 
Upvote 0
hi

changed it to following

Sub unCheck()
ActiveSheet.Shapes("Check Box 1").Select
With Selection
.Value = xlOff
.LinkedCell = "check box 88"
.Display3DShading = False
End With
End Sub


still no joy
 
Upvote 0
realised error in last entry

but still not joy

Sub unCheck()
ActiveSheet.Shapes("Check Box 88").Select
With Selection
.Value = xlOff
.LinkedCell = "$J$3"
.Display3DShading = False
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

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