jameshunt83
Board Regular
- Joined
- Oct 2, 2010
- Messages
- 149
I have the below macro in a workbook and it works absolutely perfectly. I have then copied the macro to another workbook and it doesn't work. Any idea why?
Code:
Sub Order()
ActiveSheet.Range("$P$3:$P$1000").AutoFilter Field:=1, Criteria1:="Order"
ActiveSheet.Range("$Q$3:$Q$1000").AutoFilter Field:=2, Criteria1:=xlFilterToday, Operator:=xlFilterDynamic
Range("H1").Value = "Order"
Columns("F:F").EntireColumn.Hidden = False
Columns("G:G").EntireColumn.Hidden = False
Columns("I:I").EntireColumn.Hidden = False
Columns("S:S").EntireColumn.Hidden = False
End Sub