Sub Parse_By_Month()
'
' Parse_By_Month Macro
' Parses the information out by Month then pastes that information into it's own sheet, while keeping the main information.
Columns("D:D").Select
ActiveWorkbook.Worksheets(1).Sort.SortFields.Clear
ActiveWorkbook.Worksheets(1).Sort.SortFields.Add Key:=Range("D1"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Project Query 2011").Sort
.SetRange Range("A1:G44285")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Selection.AutoFilter
ActiveSheet.Range("$D$1:$D$44285").AutoFilter Field:=1, Criteria1:=Array("="), Operator:=xlFilterValues, Criteria2:=Array(1, "1/29/2011")
Range("A1:G3594").Select 'needs to refer to last row
Selection.Copy
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Paste
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "January Projects"
End Sub
now how do i loop this