So let's say i have and 4x4 array of various numbers.
I want to delete the third array column, and switch positions of the second and fourth columns within the array.
The ultimate goal is copying information from a sheet into an array, and prepping the array to paste into another sheet.
How would I be able to do this?
Sub test()
Dim Arr as variant
Arr=Sheets("Worksheet").Range("A1:D4")
'Delete third column
'Switch second and what was the fourth but now is the 3rd column.
Sheets("Sheet2").Range("A1").Resize(UBound(Arr, 1), UBound(Arr, 4)) = Arr
End Sub