Hi
I have a macro (below) that will
Filter data from "Data Entry" then copy and paste it to sheet "June07"
What l would like to do is add to the macro so that it also copies to sheet "July07", "Aug07" etc
The paste area is the same on all pages
Is it possible?
Thanks in advance
Steve
Sub FilterData()
Sheets("Data Entry").Activate
Rows("5:1000").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=Sheets("June07").Range("A7").Value
ActiveSheet.UsedRange.Offset(1, 0).SpecialCells _
(xlCellTypeVisible).EntireRow.Copy Sheets("June07").Range("A36")
ActiveSheet.AutoFilterMode = False
Sheets("Data Entry").Select
Range("A5").Select
Sheets("June07").Select
Range("A36").Select
End Sub
I have a macro (below) that will
Filter data from "Data Entry" then copy and paste it to sheet "June07"
What l would like to do is add to the macro so that it also copies to sheet "July07", "Aug07" etc
The paste area is the same on all pages
Is it possible?
Thanks in advance
Steve
Sub FilterData()
Sheets("Data Entry").Activate
Rows("5:1000").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=Sheets("June07").Range("A7").Value
ActiveSheet.UsedRange.Offset(1, 0).SpecialCells _
(xlCellTypeVisible).EntireRow.Copy Sheets("June07").Range("A36")
ActiveSheet.AutoFilterMode = False
Sheets("Data Entry").Select
Range("A5").Select
Sheets("June07").Select
Range("A36").Select
End Sub