This is it. I call each sub producedure. I have included the sub producure for New Defects Aged by Application. I then have basically the same repeated for Closed and Open and then each for Aging by Owner. I have a sneaking suspicion that I have a lot of unnecessary code. I also was looking at Do Events. Is that anything I should look at? Thank you
==========================================
Sub SLA_Aging_Calcs()
Sheets("New").Select
Range("A1").Select
Sheets("Closed").Select
Range("A1").Select
Sheets("Open").Select
Range("A1").Select
Call AppNew
Call AppClosed
Call AppOpen
Call OwnerNew
Call OwnerClosed
Call OwnerOpen
End Sub
Public Sub AppNew()
Dim MainWorksheet As Worksheet
Application.ScreenUpdating = False ' turn off the screen updating
Range("A1").Select
Sheets("New").Select
'Count total requests for last row with information
tot_new_row = Cells(Rows.Count, 1).End(xlUp).Row
Cells.Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Sheets("New").Select
Cells.EntireColumn.AutoFit
Range("B1").Select
Columns("B:B").EntireColumn.AutoFit
Columns("A:I").Select
Selection.ColumnWidth = 12
Range("G1").Select
Columns("G:G").EntireColumn.AutoFit
Columns("J:J").Select
Selection.ColumnWidth = 111
Columns("K:L").Select
Selection.ColumnWidth = 12
ActiveWindow.SmallScroll ToRight:=-2
Columns("J:J").Select
Selection.ColumnWidth = 100
Cells.Select
Selection.RowHeight = 45
Range("A1:Q1").Select
Selection.Font.Bold = True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 6299648
.TintAndShade = 0
.PatternTintAndShade = 0
End With
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Range("A2").Select
ActiveWindow.FreezePanes = True
Columns("B:B").ColumnWidth = 13.71
Columns("B:B").ColumnWidth = 16.29
Columns("F:F").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
Application.DisplayAlerts = False
' ActiveWorkbook.SaveAs ("U:\QC\SystemReq_Report"), FileFormat:=xlOpenXMLWorkbookMacroEnabled
Range("A2").Select
ActiveWindow.SmallScroll ToRight:=2
' Age the defects
Columns("H:H").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("H1").Select
ActiveCell.FormulaR1C1 = "Age"
With ActiveCell.Characters(Start:=1, Length:=3).Font
.Name = "Calibri"
.FontStyle = "Bold"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
Range("H2").Select
ActiveCell.FormulaR1C1 = "=IF(RC[1]=""Closed"",RC[7]-RC[-1],TODAY()-RC[-1])"
Selection.NumberFormat = "0"
Range("H2").Select
Selection.AutoFill Destination:=Range("H2:H" & tot_new_row), Type:=xlFillDefault
Sheets.Add After:=Sheets(Sheets.Count)
'Application New Summary
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "Application New"
Columns("A:A").Select
Selection.ColumnWidth = 45
Range("A1").Select
ActiveCell.FormulaR1C1 = _
"Quality Center Aging Report - By Application - [New Tickets]"
Range("A1:I3").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 6299648
.TintAndShade = 0
.PatternTintAndShade = 0
End With
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Selection.Font.Bold = True
Range("A1").Select
With Selection.Font
.Name = "Calibri"
.Size = 16
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
' Severity 1-Critical New by Application
Range("A3").Select
ActiveCell.FormulaR1C1 = "Severity 1"
Range("B2").Select
ActiveCell.FormulaR1C1 = "Age in Days"
Range("B3").Select
ActiveCell.FormulaR1C1 = "< 6"
Range("C3").Select
ActiveCell.FormulaR1C1 = "6 to 10"
Range("D3").Select
ActiveCell.FormulaR1C1 = "11 to 15"
Range("E3").Select
ActiveCell.FormulaR1C1 = "16 to 20"
Range("F3").Select
ActiveCell.FormulaR1C1 = "21 to 25"
Range("G3").Select
ActiveCell.FormulaR1C1 = "26 to 30"
Range("H3").Select
ActiveCell.FormulaR1C1 = "31+"
Range("I3").Select
ActiveCell.FormulaR1C1 = "Totals"
Range("R3").Select
'Copy New Applications and remove duplicates
tot_new_app = 0
Sheets("New").Select
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Application New").Select
Range("A4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveSheet.Range("$A$3:$A$355").RemoveDuplicates Columns:=1, Header:=xlYes
tot_new_app = Cells(Rows.Count, 1).End(xlUp).Row
tot_new_app = tot_new_app - 3
tot_new_place = tot_new_app + 3
Range("A4:I" & tot_new_place & "").Select
ActiveWorkbook.Worksheets("Application New").Sort.SortFields. _
Add Key:=Range("A4:A" & tot_new_place & ""), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Application New").Sort
.SetRange Range("A3:I" & tot_new_place & "")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("B4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,""<6.00"")"
Range("C4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=6.00"",New!R2C8:R" & tot_new_row & "C8,""<=10.99"")"
Range("D4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=11.00"",New!R2C8:R" & tot_new_row & "C8,""<=15.99"")"
Range("E4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=16.00"",New!R2C8:R" & tot_new_row & "C8,""<=20.99"")"
Range("F4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=21.00"",New!R2C8:R" & tot_new_row & "C8,""<=25.99"")"
Range("G4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=26.00"",New!R2C8:R" & tot_new_row & "C8,""<=30.99"")"
Range("H4").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""1-Critical"",New!R2C8:R" & tot_new_row & "C8,"">=31.00"")"
Range("I4").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-7]:RC[-1])"
Range("B4:I4").Select
Selection.AutoFill Destination:=Range("B4:I" & tot_new_place & ""), Type:=xlFillDefault
tot_new_place = tot_new_place + 1
Range("A" & tot_new_place & "").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
ActiveCell.FormulaR1C1 = "Totals"
With ActiveCell.Characters(Start:=1, Length:=6).Font
.Name = "Calibri"
.FontStyle = "Regular"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
tot_new_cnt = tot_new_place - 1
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-" & tot_new_app & "]C:R[-1]C)"
Range("B" & tot_new_place & "").Select
Selection.AutoFill Destination:=Range("B" & tot_new_place & ":I" & tot_new_place & ""), Type:=xlFillDefault
Range("A" & tot_new_place & ":I" & tot_new_place & "").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 6299648
.TintAndShade = 0
.PatternTintAndShade = 0
End With
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Selection.Font.Bold = True
tot_new_place = tot_new_place + 2
tot_new_cnt = tot_new_cnt + 1
Range("J" & tot_new_cnt & "").Select
ActiveCell.FormulaR1C1 = "=IF(RC9=0, RC9=""No defects"", "" "" ) "
Rows("28:28").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.RowHeight = 11
Range("A44").Select
' Severity 2-Major New by Application
Rows("3:" & tot_new_cnt & "").Select
Selection.Copy
ActiveWindow.SmallScroll Down:=12
Range("A" & tot_new_place & "").Select
ActiveSheet.Paste
Range("A" & tot_new_place & "").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Severity 2"
tot_new_place = tot_new_place + 1
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,""<6.00"")"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=6.00"",New!R2C8:R" & tot_new_row & "C8,""<=10.99"")"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=11.00"",New!R2C8:R" & tot_new_row & "C8,""<=15.99"")"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=16.00"",New!R2C8:R" & tot_new_row & "C8,""<=20.99"")"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=21.00"",New!R2C8:R" & tot_new_row & "C8,""<=25.99"")"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=26.00"",New!R2C8:R" & tot_new_row & "C8,""<=30.99"")"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""2-Major"",New!R2C8:R" & tot_new_row & "C8,"">=31.00"")"
tot_new_cnt = tot_new_place + tot_new_app - 1
Range("B" & tot_new_place & ":H" & tot_new_place & "").Select
Selection.AutoFill Destination:=Range("B" & tot_new_place & ":H" & tot_new_cnt & ""), Type:=xlFillDefault
tot_new_cnt = tot_new_cnt + 4
tot_new_place = tot_new_place - 1
'Range("J" & tot_new_cnt & "").Select
'ActiveCell.FormulaR1C1 = "=IF(RC9=0, ""No defects"", "" "" ) "
' Severity 3-Medium New by Application
Rows("" & tot_new_place & ":" & tot_new_cnt & "").Select
tot_new_cnt = tot_new_cnt + 3
Selection.Copy
ActiveWindow.SmallScroll Down:=12
tot_new_place = tot_new_place + tot_new_app + 3
Range("A" & tot_new_place & "").Select
ActiveSheet.Paste
Range("A" & tot_new_place & "").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Severity 3"
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "< 11"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "11 to 15"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "16 to 20"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "21 to 25"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "26 to 30"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "31 to 45"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "46+"
tot_new_place = tot_new_place + 1
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""3-Medium"",New!R2C8:R" & tot_new_row & "C8,""<11.00"")"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=11.00"",New!R2C8:R353C8,""<=15.99"")"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=16.00"",New!R2C8:R353C8,""<=20.99"")"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=21.00"",New!R2C8:R353C8,""<=25.99"")"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=26.00"",New!R2C8:R353C8,""<=30.99"")"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=31.00"",New!R2C8:R353C8,""<=45.99"")"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""3-Medium"",New!R2C8:R353C8,"">=46.00"")"
tot_new_cnt = tot_new_place + tot_new_app - 1
Range("B" & tot_new_place & ":H" & tot_new_place & "").Select
Selection.AutoFill Destination:=Range("B" & tot_new_place & ":H" & tot_new_cnt & ""), Type:=xlFillDefault
tot_new_cnt = tot_new_cnt + 4
tot_new_place = tot_new_place - 1
'Range("J" & tot_new_cnt & "").Select
'ActiveCell.FormulaR1C1 = "=IF(RC9=0, ""No defects"", "" "" ) "
' Severity 4-Low New by Application
Rows("" & tot_new_place & ":" & tot_new_cnt & "").Select
tot_new_cnt = tot_new_cnt + 3
Selection.Copy
ActiveWindow.SmallScroll Down:=12
tot_new_place = tot_new_place + tot_new_app + 3
Range("A" & tot_new_place & "").Select
ActiveSheet.Paste
Range("A" & tot_new_place & "").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Severity 4"
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "< 20"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "20 to 30"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "31 to 40"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "41 to 50"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "51 to 60"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "61 to 70"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "71+"
tot_new_place = tot_new_place + 1
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""4-Low"",New!R2C8:R" & tot_new_row & "C8,""<20.00"")"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=20.00"",New!R2C8:R353C8,""<=30.99"")"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=31.00"",New!R2C8:R353C8,""<=40.99"")"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=41.00"",New!R2C8:R353C8,""<=50.99"")"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=51.00"",New!R2C8:R353C8,""<=60.99"")"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=61.00"",New!R2C8:R353C8,""<=70.99"")"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""4-Low"",New!R2C8:R353C8,"">=71.00"")"
tot_new_cnt = tot_new_place + tot_new_app - 1
Range("B" & tot_new_place & ":H" & tot_new_place & "").Select
Selection.AutoFill Destination:=Range("B" & tot_new_place & ":H" & tot_new_cnt & ""), Type:=xlFillDefault
tot_new_cnt = tot_new_cnt + 1
tot_new_place = tot_new_place - 1
' Range("J" & tot_new_cnt & "").Select
' ActiveCell.FormulaR1C1 = "=IF(RC9=0, ""No defects"", "" "" ) "
' Severity 5-Very Low New by Application
Rows("" & tot_new_place & ":" & tot_new_cnt & "").Select
tot_new_cnt = tot_new_cnt + 3
Selection.Copy
ActiveWindow.SmallScroll Down:=12
tot_new_place = tot_new_place + tot_new_app + 3
Range("A" & tot_new_place & "").Select
ActiveSheet.Paste
Range("A" & tot_new_place & "").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Severity 5"
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "< 20"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "20 to 30"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "31 to 40"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "41 to 50"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "51 to 60"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "61 to 70"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = "71+"
tot_new_place = tot_new_place + 1
Range("B" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R" & tot_new_row & "C3,RC1,New!R2C10:R" & tot_new_row & "C10,""5-Very Low"",New!R2C8:R" & tot_new_row & "C8,""<20.00"")"
Range("C" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=20.00"",New!R2C8:R353C8,""<=30.99"")"
Range("D" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=31.00"",New!R2C8:R353C8,""<=40.99"")"
Range("E" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=41.00"",New!R2C8:R353C8,""<=50.99"")"
Range("F" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=51.00"",New!R2C8:R353C8,""<=60.99"")"
Range("G" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=61.00"",New!R2C8:R353C8,""<=70.99"")"
Range("H" & tot_new_place & "").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIFS(New!R2C3:R353C3,RC1,New!R2C10:R353C10,""5-Very Low"",New!R2C8:R353C8,"">=71.00"")"
tot_new_cnt = tot_new_place + tot_new_app - 1
Range("B" & tot_new_place & ":H" & tot_new_place & "").Select
Selection.AutoFill Destination:=Range("B" & tot_new_place & ":H" & tot_new_cnt & ""), Type:=xlFillDefault
Range("A2").Select
tot_new_place = tot_new_place + 1
For i = 4 To tot_new_place
If Range("I" & i) = 0 Then
Range("I" & i).EntireRow.Hidden = True
Else
Range("I" & i).EntireRow.Hidden = False
End If
Next i
tot_new_cnt = tot_new_cnt - 2
tot_new_place = tot_new_place - 1
End Sub