I've copied this code from elsewhere
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then ActiveSheet.Range("A:C").AutoFilter field:=3, Criteria1:="TomM"
End Sub
I saved it in Module1
I was hoping it would filter my sheet when I clicked on the option button, but it does nothing - could anyone point me in the right direction as to why this might be?
I'm not a VBA whizz by any means so it could be something really basic or stupid I am doing!
Thanks
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then ActiveSheet.Range("A:C").AutoFilter field:=3, Criteria1:="TomM"
End Sub
I saved it in Module1
I was hoping it would filter my sheet when I clicked on the option button, but it does nothing - could anyone point me in the right direction as to why this might be?
I'm not a VBA whizz by any means so it could be something really basic or stupid I am doing!
Thanks