HotNumbers
Well-known Member
- Joined
- Feb 14, 2005
- Messages
- 732
Can someone please tell me how i can change the code below to work on the worksheet and to be a privatesub or function. What i mean by this is i want the macro to run as soon as cell E8 is changed.
Sub AutFilterLogic()
'
' Macro21 Macro
'
Sheets("ZICO InputSheet").Select
Range("A17:S17").Select
Selection.AutoFilter
Selection.AutoFilter Field:=19, Criteria1:=Range("E8").Value
Beep
End Sub
Sub AutFilterLogic()
'
' Macro21 Macro
'
Sheets("ZICO InputSheet").Select
Range("A17:S17").Select
Selection.AutoFilter
Selection.AutoFilter Field:=19, Criteria1:=Range("E8").Value
Beep
End Sub