I have a macro I wrote that appends some data.
As of now it spits out data populated from Column A to AY (A:AY)
I need most of these columns and their data removed and two columns repeated/copied & pasted.
My goal: (A-G-C-C-D-G-I-AY)
I wrote this code and I have been able to produce (A-C-D-G-I-AY) from it:
Range("B2").Select
Selection.EntireColumn.Delete
Range("D2:E2").Select
Selection.EntireColumn.Delete
Range("E2").Select
Selection.EntireColumn.Delete
Range("F2:AT2").Select
Selection.EntireColumn.Delete
Range("G2").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.EntireColumn.Delete
Note* the ranges starting at row 2 does not matter. row 1 is blank anyway for the data produced.
If there is a way to make what I have here more efficient and get the two repeated columns in the right spot would be much appreciated.