I've been trying to extract certain columns from an Excel sheet from a multitude of unwanted columns. I've been running the following script:
Public Sub extractCol()
Set range1 = Range("A:A, BI:BI, C:C, L:L")
range1.Copy
Set newbook = Workbooks.Add
ActiveCell.PasteSpecial Paste:=xlPasteValues
End Sub
This formula extracts the data however, the output comes out as:
Column A Column C Column L Column BI
When the output I need is:
Column A Column BI Column C Column L
How can I change the code to get the desired output?