The aim of my code is to copy each column and paste each below the other in column A.
I am trying to use a counter loop to loop through columns one at a time, but I can't work out how to reference each column to get all of the used cells in the column. Pretty straightforward for rows, but for columns do I either need to set a variable to string and change it to a letters counter, or can I refer to a column using a number in the range format?
Below code doesn't work when I try and select the entire column.
Sub testing()
Dim i As Integer
Dim lastrow As Integer
Const g As Byte = 2
lastrow = Range("b" & Rows.Count).End(xlUp).Row
For i = g To Cells(1, Columns.Count).End(xlLeft).Column
*Cells(1, i).EntireColumn.End(xlUp).Copy*
Range("a1").End(xlDown).Offset(1, 0).PasteSpecial xlPasteValues
Next i
End Sub