Sub Macro1()'
' ABC
Range("B6").Select
Sheets("Dump Data Here").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$W$23916").AutoFilter Field:=4, Criteria1:= _
"ABC"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveCell.Range("A1:W683").Select
Selection.Columns.AutoFit
Range("A2").Select
ActiveCell.FormulaR1C1 = "1"
Range("A2").Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Stop:=50000, Trend:=False
Selection.End(xlDown).Select
Range("B50001").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, -1).Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\XYZ\Desktop\Test\ABC.xlsx", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
Sheets("Dump Data Here").Select
Range("A1").Select
Selection.AutoFilter
Range("A1").Select
Sheets("Summary").Select
Range("A1").Select
' DEF
Range("B6").Select
Sheets("Dump Data Here").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$W$23916").AutoFilter Field:=4, Criteria1:= _
"DEF"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveCell.Range("A1:W683").Select
Selection.Columns.AutoFit
Range("A2").Select
ActiveCell.FormulaR1C1 = "1"
Range("A2").Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Stop:=50000, Trend:=False
Selection.End(xlDown).Select
Range("B50001").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, -1).Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\XYZ\Desktop\Test\DEF.xlsx", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
Sheets("Dump Data Here").Select
Range("A1").Select
Selection.AutoFilter
Range("A1").Select
Sheets("Summary").Select
Range("A1").Select
' GHI
Range("B6").Select
Sheets("Dump Data Here").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$W$23916").AutoFilter Field:=4, Criteria1:= _
"GHI"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveCell.Range("A1:W683").Select
Selection.Columns.AutoFit
Range("A2").Select
ActiveCell.FormulaR1C1 = "1"
Range("A2").Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Stop:=50000, Trend:=False
Selection.End(xlDown).Select
Range("B50001").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, -1).Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\XYZ\Desktop\Test\GHI.xlsx", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
Sheets("Dump Data Here").Select
Range("A1").Select
Selection.AutoFilter
Range("A1").Select
Sheets("Summary").Select
Range("A1").Select
' JKL
Range("B6").Select
Sheets("Dump Data Here").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$W$23916").AutoFilter Field:=4, Criteria1:= _
"JKL"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveCell.Range("A1:W683").Select
Selection.Columns.AutoFit
Range("A2").Select
ActiveCell.FormulaR1C1 = "1"
Range("A2").Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Stop:=50000, Trend:=False
Selection.End(xlDown).Select
Range("B50001").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, -1).Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\XYZ\Desktop\Test\JKL.xlsx", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
Sheets("Dump Data Here").Select
Range("A1").Select
Selection.AutoFilter
Range("A1").Select
Sheets("Summary").Select
Range("A1").Select
End Sub