This should work
Sub M1()
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Dim arr() As Variant
Dim var As Variant
Dim x As Long
Dim icol As Long
Set ws1 = Sheets("corps")
Set ws2 = Sheets("csv")
With ws1
x = .Range("a" & .Rows.Count).End(xlUp).Row: icol = 1
For Each var In Array("A", "B", "C", "D", "H", "I", "K", "L", " M", "Q", "R", "S", "T", "W")
arr = .Range(CStr(var) & 1).Resize(x).Value
ws2.Cells(1, icol).Resize(UBound(arr, 1)).Value = arr
Erase arr: icol = icol + 1
Next var
End With
Set ws1 = Nothing
Set ws2 = Nothing
End Sub
Bookmarks