I'm using the code below which is assigned to a button to filter based on a list of criteria. I'm getting an error when running and I can't see my problem:-
Can anyone point out the obvious error (assuming its obvious, because I cant see it)?
Code:
Public Sub cmdLiveJobs_Click()
ActiveSheet.ListObjects(1).AutoFilter.ShowAllData
Application.ScreenUpdating = False
Range("E8:E10000").CurrentRegion.AutoFilter _
Field:=5, Criteria1:=Array("JOB RAISED", "PROGRAMMED", "FIELD", "OFFICE", "DELIVERED", "INVOICED"), Operator:=xlFilterValues
ActiveWindow.ScrollRow = 1
Application.ScreenUpdating = True
Calculate
End Sub
Can anyone point out the obvious error (assuming its obvious, because I cant see it)?