Sub Wires2()'' Wires2 Macro'' Keyboard Shortcut: Ctrl+q' ChDir "U:\" ActiveWorkbook.SaveAs Filename:="U:\wires2.xlsx", FileFormat:= _ xlOpenXMLWorkbook, CreateBackup:=False Cells.Select Selection.Font.Bold = True Cells.EntireColumn.AutoFit Rows("1:1").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Font.Underline = xlUnderlineStyleSingle Rows("2:2").Select Selection.Delete Shift:=xlUp Columns("D:D").Select Columns("T:T").Select Selection.Style = "Comma" Range("R13").Select Range("D:D,E:E,F:F,G:G,H:H").Select Range("H1").Activate Range("D:D,E:E,F:F,G:G,H:H,I:I,J:J,K:K,L:L,M:M").Select Range("M1").Activate Range("D:D,E:E,F:F,G:G,H:H,I:I,J:J,K:K,L:L,M:M,N:N,O:O,P:P,Q:Q,R:R").Select Range("R1").Activate Range("D:D,E:E,F:F,G:G,H:H,I:I,J:J,K:K,L:L,M:M,N:N,O:O,P:P,Q:Q,R:R,V:V,W:W,X:X" _ ).Select Range("X1").Activate Range( _ "D:D,E:E,F:F,G:G,H:H,I:I,J:J,K:K,L:L,M:M,N:N,O:O,P:P,Q:Q,R:R,V:V,W:W,X:X,Y:Y,Z:Z,AA:AA,AB:AB,AC:AC,AD:AD,AE:AE" _ ).Select Range("AE1").Activate Selection.Delete Shift:=xlToLeft Columns("B:B").Select Selection.Cut Columns("A:A").Select Selection.Insert Shift:=xlToRight Range("G1").Select ActiveCell.FormulaR1C1 = "MIKE" Rows("1:1").Select Selection.AutoFilter Range("B11").Select ActiveWorkbook.Worksheets("Ledger Account Detail_20190412_").AutoFilter.Sort. _ SortFields.Clear ActiveWorkbook.Worksheets("Ledger Account Detail_20190412_").AutoFilter.Sort. _ SortFields.Add2 Key:=Range("B1"), SortOn:=xlSortOnValues, Order:= _ xlAscending, DataOption:=xlSortNormal With ActiveWorkbook.Worksheets("Ledger Account Detail_20190412_").AutoFilter. _ Sort .Header = xlYes .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With Range("F17").Select Range("K2").Select Range("J2").Select Windows("wires2.xlsx").Activate Range("T2").Select ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-19],RC[-18])" Range("T2").Select Selection.AutoFill Destination:=Range("T2:T10000"), Type:=xlFillDefault Range("T2:T10000").Select Columns("T:T").EntireColumn.AutoFit Range("S2").Select Windows("wires2.xlsx").Activate ActiveCell.FormulaR1C1 = "=SUMIF(C[1],CONCATENATE(C[-18],C[-17]),C[-14])" Range("S2").Select Selection.AutoFill Destination:=Range("S2:S10000"), Type:=xlFillDefault Range("S2:S10000").Select Range("T9998").Select Columns("S:S").Select Selection.Style = "Comma" Range("N12").Select Sheets.Add After:=ActiveSheet Sheets("Sheet1").Select Sheets("Sheet1").Name = "Wires" Windows("wires2.xlsx").Activate Range("A1").Select ActiveCell.FormulaR1C1 = "Amount" Range("B1").Select ActiveCell.FormulaR1C1 = "Name" Range("C1").Select ActiveCell.FormulaR1C1 = "='Ledger Account Detail_20190412_'!RC[4]" Range("C2").Select Range("A2").Select Windows("wires2.xlsx").Activate Range("A2").Select ActiveCell.FormulaR1C1 = "='Ledger Account Detail_20190412_'!RC[18]" Range("A2").Select Selection.AutoFill Destination:=Range("A2:A10000"), Type:=xlFillDefault Range("A2:A10000").Select Columns("A:A").EntireColumn.AutoFit Range("B2").Select ActiveCell.FormulaR1C1 = "='Ledger Account Detail_20190412_'!RC[18]" Range("B2").Select Selection.AutoFill Destination:=Range("B2:B10000"), Type:=xlFillDefault Range("B2:B10000").Select Range("B2").Select Columns("B:B").EntireColumn.AutoFit Columns("A:B").Select ActiveSheet.Range("$A$1:$B$10000").RemoveDuplicates Columns:=Array(1, 2), _ Header:=xlYes Cells.Select Selection.Font.Bold = True With Selection.Font .Name = "Calibri" .Size = 14 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ThemeColor = xlThemeColorLight1 .TintAndShade = 0 .ThemeFont = xlThemeFontMinor End With Rows("1:1").Select Selection.Font.Underline = xlUnderlineStyleSingle With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Rows("1:1").Select Selection.AutoFilter Range("C6").SelectEnd Sub