This is a snippet of the code as it has to work for about 100 rows and repeats each section to create tabs and copy and paste the rows.
Sub Autocreate()
'
' Autocreate Macro
'
'
Workbooks.Add
ActiveWorkbook.SaveAs Filename:= _
"Q:\PAUL-KEN\STATISTICS\STATISTICS 2004\Incentives 2004\Export.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
Sheets("Sheet3").Select
ActiveWindow.SelectedSheets.Delete
Sheets("Sheet2").Select
ActiveWindow.SelectedSheets.Delete
Sheets("Sheet1").Select
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.25)
.RightMargin = Application.InchesToPoints(0.25)
.TopMargin = Application.InchesToPoints(0.4)
.BottomMargin = Application.InchesToPoints(0.4)
.HeaderMargin = Application.InchesToPoints(0.22)
.FooterMargin = Application.InchesToPoints(0.22)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 90
.PrintErrors = xlPrintErrorsDisplayed
End With
Sheets("Sheet1").Name = "3"
Sheets("3").Copy After:=Sheets("3")
Sheets("3 (2)").Name = "4"
Sheets("3").Copy After:=Sheets("4")
Sheets("3 (2)").Name = "5"
Sheets("3").Copy After:=Sheets("5")
Sheets("3 (2)").Name = "6"
Windows("Staff Incentive Spring Party.xls").Activate
Rows("31:31").Select
Selection.Copy
Rows("108:108").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A133:N166").Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Windows("Export.xls").Activate
Sheets("3").Select
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Windows("Staff Incentive Spring Party.xls").Activate
Rows("32:32").Select
Selection.Copy
Rows("108:108").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A133:N166").Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Windows("Export.xls").Activate
Sheets(4").Select
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Sheets("3").Select
End Sub