Sub IRT_2()'
' IRT_2 Macro
'
' Keyboard Shortcut: Ctrl+Shift+O
'
Dim nrows As Long
ActiveSheet.ShowAllData
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=3, Criteria1:= _
"Order Filled"
Rows("2:2").Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Rows("3:3").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Selection.Font.Bold = False
nrows = Cells(Rows.Count, "H").End(xlUp).Row
Range("I3").FormulaR1C1 = "Order Filled"
Range("J3").FormulaR1C1 = "Order FIlled"
Range("I3:J3").Copy Range("I3:J" & nrows)
Rows("3:3").EntireRow.Delete
ActiveSheet.ShowAllData
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=3, Criteria1:=Array( _
"Impound", "Late", "NP", "On Time", "Past Due"), Operator:=xlFilterValues
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=26, Criteria1:="A"
Rows("2:2").Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Rows("3:3").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Selection.Font.Bold = False
nrows = Cells(Rows.Count, "H").End(xlUp).Row
Range("I3").FormulaR1C1 = "apprd rb okay"
Range("J3").FormulaR1C1 = "apprd rb okay"
Range("I3:J3").Copy Range("I3:J" & nrows)
Rows("3:3").EntireRow.Delete
ActiveSheet.Range("$A$2:$BD$2960").AutoFilter Field:=19, Criteria1:=RGB(238 _
, 236, 225), Operator:=xlFilterCellColor
Rows("2:2").Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Rows("3:3").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Selection.Font.Bold = False
nrows = Cells(Rows.Count, "H").End(xlUp).Row
Range("I3").FormulaR1C1 = "rb late"
Range("J3").FormulaR1C1 = "rb late"
Range("I3:J3").Copy Range("I3:J" & nrows)
Rows("3:3").EntireRow.Delete
ActiveSheet.ShowAllData
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=3, Criteria1:=Array( _
"Impound", "Late", "NP", "On Time", "Partial Qty Rcvd", "Past Due"), Operator:=xlFilterValues
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=26, Criteria1:=Array( _
"C", "R", "="), Operator:=xlFilterValues
Rows("2:2").Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Rows("3:3").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Selection.Font.Bold = False
nrows = Cells(Rows.Count, "H").End(xlUp).Row
Range("I3").FormulaR1C1 = "."
Range("J3").FormulaR1C1 = "."
Range("I3:J3").Copy Range("I3:J" & nrows)
Rows("3:3").EntireRow.Delete
ActiveSheet.ShowAllData
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=26, Criteria1:="O"
ActiveSheet.Range("$A$2:$BD$5000").AutoFilter Field:=9, Criteria1:=Array( _
".", "apprvd rb okay", "rb late", "rb R&F"), Operator:=xlFilterValues
End Sub