3rd (and Messiest) part of the code :
'Delete Unwanted Columns from JOB CHECKLIST
BaseWks.Range("D:D,E:E,F:F,G:G,H:H,L:L,M:M,N:N,O:O,R:R").Select
BaseWks.Range("R1").Activate
Selection.Delete Shift:=xlToLeft
'Add Header Row to New Worksheet
vHdr = Array("WEEKS TO GO", "JOB #", "ADDRESS", "B.TRAP", "R. VALVE", "150 SHAFT", "CUT PATH", _
"CUT KERB", "PITS", "O. PLATE", "T/ SCREEN", "F.O.", "COMPLETION DATE")
Rows(1).Insert
Range("A1").Resize(, UBound(vHdr) + 1).Value = vHdr
'Set the Row Height & Column Width in the new workbook
BaseWks.Rows("1:24").RowHeight = 300
BaseWks.Columns("A:A").ColumnWidth = 49.3
BaseWks.Columns("B:B").ColumnWidth = 49.3
BaseWks.Columns("C:C").ColumnWidth = 250.1
BaseWks.Columns("D:L").ColumnWidth = 28.5
BaseWks.Columns("M:M").ColumnWidth = 110
'Change Font Sizes, Text Centering, Wrap Text in new Workbook
Range("A:C,M:M").Select
Range("M1").Activate
With Selection
.HorizontalAlignment = xlCenter
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection.Font
.Name = "Calibri"
.Size = 120
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.TintAndShade = 0
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Columns("D:K").Select
With Selection.Font
.Name = "Wingdings 2"
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
With Selection.Font
.Name = "Wingdings 2"
.Size = 120
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
With Selection
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Range("A1:M1").Select
With Selection.Font
.Size = 48
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
End With
Range("D1:K1").Select
With Selection.Font
.Name = "Calibri"
.Size = 48
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
'Set Cell Oultlines & Borders on New Sheet
Range("A1:M24").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThick
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThick
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThick
End With
'Clear Cell Fill from pasted data in new sheet
BaseWks.Cells.Interior.ColorIndex = 2
'Set Page
BaseWks.PageSetup.Orientation = xlPortrait
BaseWks.PageSetup.FitToPagesWide = 1
BaseWks.PageSetup.FitToPagesTall = 1
BaseWks.PageSetup.Zoom = False
'Insert Todays Date in Header
With BaseWks.PageSetup
.CenterHeader = "&200&D"
End With
'Shade fill every 2nd row in the current selection
With BaseWks
For Counter = 1 To Selection.Rows.Count
'If the row is an odd number (within the selection)...
If Counter Mod 2 = 1 Then
'Set the pattern to xlGray16.
Selection.Rows(Counter).Interior.Pattern = xlGray16
End If
Next
End With
'Restore ScreenUpdating, Calculation and EnableEvents
With Application
.ScreenUpdating = True
.EnableEvents = True
.Calculation = xlCalculationAutomatic
End With
End Sub
Bookmarks