I'm a VB novice and am struggling to find the right code to copy, from one workbook, and paste into another, a defined range (only 15 rows) of auto filtered data, based on it being within a defined date range (I have a forumula which gives me a marker (1) for filtering. The row data changes according to the date and I want to copy no more than 15 rows of the filtered data. How would I code this to make the copy of the filtered selection within a defined range (B3:M250)? This is part of the code I currently have:
Hope this is clear, many thanks.
Code:
Windows("3.Period 2_Milestone_matrix.xls").Activate
Sheets("All Milestones").Select
Selection.AutoFilter Field:=9, Criteria1:="=CER", Operator:=xlAnd
Selection.AutoFilter Field:=18, Criteria1:="=1", Operator:=xlAnd
Range("B3:M250").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Highlight report template.xls").Activate
ActiveSheet.Paste
Hope this is clear, many thanks.
Last edited by a moderator: