tazeo
Board Regular
- Joined
- Feb 15, 2007
- Messages
- 132
- Office Version
- 365
- Platform
- Windows
Got a Private Sub:
Private Sub Worksheet_Activate()
On Error Resume Next
Selection.AutoFilter Field:=10, Criteria1:=Sheets("Instructions").Range("AA7").Value
Selection.AutoFilter Field:=33, Criteria1:=Sheets("Instructions").Range("AA5").Value
End Sub
How do I change it to a normal on demand macro. More to it than removing the Private bit, cause that didn't work , so I am guessing there needs to be more at the beginning and end.
Thanks in Advance
Private Sub Worksheet_Activate()
On Error Resume Next
Selection.AutoFilter Field:=10, Criteria1:=Sheets("Instructions").Range("AA7").Value
Selection.AutoFilter Field:=33, Criteria1:=Sheets("Instructions").Range("AA5").Value
End Sub
How do I change it to a normal on demand macro. More to it than removing the Private bit, cause that didn't work , so I am guessing there needs to be more at the beginning and end.
Thanks in Advance