Code
Thanks guys added your bit of code and it seems to work, thanks!!
Here's the code I created, sorry if it's a bit lengthy, I've Added >>> where the yellow arrow points to in debug.
Application.DisplayAlerts = False
Sheets("Service Inventory Report").Select
Range("C:C,F:F").Select
Range("F1").Activate
Selection.Copy
Sheets.Add
ActiveSheet.Paste
Range("C2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=CONCATENATE(A:A,"","",B:B)"
Columns("C:C").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Range("C2").Select
Selection.AutoFill Destination:=Range("C2:C9770")
Range("C2:C9770").Select
Cells.Select
Range("A1:C15177").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"G1"), Unique:=True
Columns("G:G").Select
Selection.TextToColumns Destination:=Range("G1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
Columns("G:H").Select
Selection.Subtotal GroupBy:=1, Function:=xlCount, TotalList:=Array(2), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
ActiveSheet.Outline.ShowLevels RowLevels:=2
Columns("G:H").EntireColumn.AutoFit
Range("G:G,G1").Select
Selection.Font.Bold = False
Range("G1").Select
Selection.Font.Bold = True
Range("G28").Select
Columns("H:H").EntireColumn.AutoFit
Columns("H:H").EntireColumn.AutoFit
Columns("H:H").ColumnWidth = 10.29
ActiveWindow.LargeScroll Down:=-1
Range("H1").Select
ActiveCell.FormulaR1C1 = "USers"
With ActiveCell.Characters(Start:=1, Length:=9).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 2
End With
Range("H1").Select
ActiveCell.FormulaR1C1 = "Users"
With ActiveCell.Characters(Start:=1, Length:=9).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 2
End With
Columns("A:F").Select
Selection.Delete Shift:=xlToLeft
Range("D26").Select
Range("A:B").SpecialCells(xlCellTypeVisible).Copy
ActiveWindow.SelectedSheets.Delete
Sheets.Add
>>>the yellow arrow points to this line] ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Range("A1:B1").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(2), _
Replace:=False, PageBreaks:=False, SummaryBelowData:=True
ActiveSheet.Outline.ShowLevels RowLevels:=2
Range("A1").Select
Range("A:B").SpecialCells(xlCellTypeVisible).Copy
ActiveWindow.SelectedSheets.Delete
Sheets.Add
ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Range("A1:B1").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.SelectedSheets.Delete
Sheets("Users Variance").Select
Range("A1").Select
ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Selection.Replace What:="Total", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="Count", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="Grand", Replacement:="Total", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Application.DisplayAlerts = True