I am close from my research to get my auto filter working but its just not right. I have both sheets open at the same time and trying to sort my criteria from cell A2 from another sheet. Here is my code:
Windows("Credit Card Summary V2 JUL-AUG.xlsm").Activate
Sheets("Transactions").Activate
* ActiveSheet.Range("$A$1:$J$1000").AutoFilter Field:=3, Criteria1:=Sheets("Weekly Summary Form V4").Range("A2").Value THIS IS WHERE IT FAILS
Columns("B:J").Select
Selection.Copy
Windows("Weekly Summary Form V4").Activate
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A4").Select
Windows("Credit Card Summary V2 JUL-AUG.xlsm").Activate
ActiveSheet.ShowAllData
Windows("Weekly Summary Form V4").Activate
Application.ScreenUpdating = True
MsgBox "DATA SET FOR SENDING EMIAL"
When i set the criteria just as text this works just fine. Any help is greatly appreciated.
Mike
Windows("Credit Card Summary V2 JUL-AUG.xlsm").Activate
Sheets("Transactions").Activate
* ActiveSheet.Range("$A$1:$J$1000").AutoFilter Field:=3, Criteria1:=Sheets("Weekly Summary Form V4").Range("A2").Value THIS IS WHERE IT FAILS
Columns("B:J").Select
Selection.Copy
Windows("Weekly Summary Form V4").Activate
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A4").Select
Windows("Credit Card Summary V2 JUL-AUG.xlsm").Activate
ActiveSheet.ShowAllData
Windows("Weekly Summary Form V4").Activate
Application.ScreenUpdating = True
MsgBox "DATA SET FOR SENDING EMIAL"
When i set the criteria just as text this works just fine. Any help is greatly appreciated.
Mike