Sub Exchanges()
Application.ScreenUpdating = False
Sheets("Paste Completions Report Here").Visible = True
Sheets("Paste Exchanges Report Here").Visible = True
Sheets("Completion Results").Visible = True
Sheets("Exchanges Results").Visible = True
MsgBox ("Calculating Exchange Figures ")
Sheets("Paste Exchanges Report Here").Select
Range("K1").Select
ActiveCell.FormulaR1C1 = "Fee Earner & Category"
Range("K2").Select
ActiveCell.FormulaR1C1 = "=RC[-7]&RC[-1]"
Range("K2").Select
Columns("K:K").EntireColumn.AutoFit
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Columns("K:K").EntireColumn.AutoFit
ActiveWindow.SmallScroll ToRight:=6
Range("M12").Select
ActiveWindow.LargeScroll ToRight:=-1
Rows("1:1").Select
Selection.AutoFilter
Columns("D:D").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Columns( _
"D:D"), CopyToRange:=Range("Y1"), Unique:=True
ActiveWindow.SmallScroll ToRight:=12
Columns("Y:Y").EntireColumn.AutoFit
Columns("Y:Y").Select
Selection.Copy
Application.CutCopyMode = False
Selection.Cut
Sheets("Exchanges Results").Select
Columns("A:A").Select
ActiveSheet.Paste
Range("B2").Select
ActiveCell.FormulaR1C1 = "=RC[-1]&R1C2"
Range("B2").Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Sheets("Exchanges Results").Select
Range("C2").Select
ActiveCell.FormulaR1C1 = "=RC[-2]&R1C3"
Range("C2").Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Sheets("Exchanges Results").Select
Columns("A:D").Select
Selection.EntireColumn.Hidden = False
Range("D2").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIF('Paste Exchanges Report Here'!C[7],'Exchanges Results'!RC[-2])"
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=COUNTIF('Paste Exchanges Report Here'!C[6],'Exchanges Results'!RC[-2])"
Range("D2").Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Sheets("exchanges results").Select
Range("E2").Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Sheets("Exchanges Results").Select
Columns("B:C").Select
Range("C1").Activate
Selection.EntireColumn.Hidden = True
Sheets("Exchanges Results").Select
Range("F2").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-2]:RC[-1])"
Range("F2").Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Range("a1").Select
Sheets("Exchanges Results").Select
Range("G2").Select
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
ActiveCell.FormulaR1C1 = _
"=IF(RC[-2]=0=TRUE,RC[-1],CONCATENATE(RC[-1],""(""&RC[-2],R1C8&"")""))"
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
ActiveWindow.SmallScroll Down:=-20
Range("A1").Select
Sheets("Exchanges Results").Select
Columns("A:A").Select
Selection.Copy
Columns("N:N").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Columns("G:G").Select
Application.CutCopyMode = False
Selection.Copy
Columns("P:P").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Columns("N:N").EntireColumn.AutoFit
Columns("P:P").EntireColumn.AutoFit
Range("O2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Workings!C[-14]:C[-13],2,FALSE)"
Range("O3").Select
Columns("O:O").EntireColumn.AutoFit
Range("O2").Select
Selection.AutoFill Destination:=Range("O2:O32")
Range("O2:O32").Select
Columns("N:N").Select
Selection.EntireColumn.Hidden = True
Range("O1").Select
ActiveCell.FormulaR1C1 = "Fee Earner"
Range("O2").Select
Columns("O:O").EntireColumn.AutoFit
Columns("P:P").EntireColumn.AutoFit
Columns("O:P").Select
With Selection.Font
.Name = "Tahoma"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Columns("P:P").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Range("A1").Select
Sheets("Paste Completions Report Here").Visible = False
Sheets("Paste Exchanges Report Here").Visible = False
Sheets("Completion Results").Visible = False
Sheets("Exchanges Results").Visible = False
Application.ScreenUpdating = True
End Sub