Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to make my macro turn on the auto filter when checked, and
turn it off when unchecked? Rows("3:3").Select Selection.AutoFilter Range("A4").Select End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
if using a check box from the control tool box, this should work auto filter is boolean meaning the same command that turns it on also turns it off if it's on. i removed the select and selection parts...........not needed. Private Sub CheckBox1_Click() If Me.CheckBox1.Value = True Then 'turn of Rows("3:3").AutoFilter Range("A4").Select Else 'turn off Rows("3:3").AutoFilter Range("A4").Select End If End Sub regards FSt1 "Munchkin" wrote: Is it possible to make my macro turn on the auto filter when checked, and turn it off when unchecked? Rows("3:3").Select Selection.AutoFilter Range("A4").Select End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign macro | Excel Programming | |||
Assign a Macro | Excel Discussion (Misc queries) | |||
How do I assign a value to check box in excel | Excel Worksheet Functions | |||
How to assign a macro | Excel Discussion (Misc queries) | |||
still can't assign MACRO | Excel Programming |