Hi
MARCO P1
Sub Stage_1()
'
' Stage_1 Macro
'
'
Sheets("Raw Data").Select
Rows("1:1").Select
Application.CutCopyMode = False
With Selection.Font
.Name = "Arial"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Cells.Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Columns("A:B").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A1").Select
ActiveCell.FormulaR1C1 = "Department Indicator"
Range("A4").Select
Columns("A:A").EntireColumn.AutoFit
Range("B1").Select
ActiveCell.FormulaR1C1 = "Department"
Range("B2").Select
Columns("B:B").EntireColumn.AutoFit
Range("A1:B1").Select
Range("B1").Activate
Selection.Font.Bold = True
Range("A2").Select
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Range("A2").Select
ActiveCell.FormulaR1C1 = "=LEFT(RC[2],(2))"
Range("B2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Dept,2,0)"
Range("A2:B2").Select
Selection.AutoFill Destination:=Range("A2:B1897")
Range("A2:B1897").Select
Columns("A:B").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:A").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
Columns("F:F").Select
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 5
ActiveWindow.ScrollColumn = 6
Range("F:F,H:H").Select
Range("H1").Activate
Selection.NumberFormat = "$#,##0.00"
Range("I3").Select
ActiveWindow.ScrollColumn = 7
ActiveWindow.ScrollColumn = 8
ActiveWindow.ScrollColumn = 9
Columns("J:J").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("J1").Select
ActiveCell.FormulaR1C1 = "Removed"
Range("J1").Select
ActiveCell.FormulaR1C1 = "Remove"
Range("J2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Removed,2,0)"
Selection.AutoFill Destination:=Range("J2:J1897")
Range("J2:J1897").Select
Columns("J:J").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.ScrollColumn = 10
ActiveWindow.ScrollColumn = 11
ActiveWindow.ScrollColumn = 12
ActiveWindow.ScrollColumn = 11
Columns("M:N").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("M1").Select
ActiveCell.FormulaR1C1 = "Todays Date"
Range("N1").Select
ActiveCell.FormulaR1C1 = "No.of days since Input"
Range("M1:N1").Select
Selection.Copy
Range("P1").Select
ActiveSheet.Paste
Columns("P:P").EntireColumn.AutoFit
Columns("Q:Q").EntireColumn.AutoFit
Range("Q1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "No.of days since Invoice"
Range("Q2").Select
Columns("Q:Q").EntireColumn.AutoFit
Range("M2").Select
ActiveCell.FormulaR1C1 = "=TODAY()"
Range("M2").Select
Selection.AutoFill Destination:=Range("M2:M1897")
Range("M2:M1897").Select
Range("M2").Select
Selection.Copy
Range("P2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("P2:P1897")
Range("P2:P1897").Select
Columns("M:M").Select
Selection.Copy
Bookmarks