okeyuzosike
Programmer
Hi everyone,
I have a spreadsheet with information in some of the colums: ("A:Y").
I want to move(relocate the content of column "A" to any column that does not have data(values).
In other words, I want to cut the content of Column "A", loop through the rest of the columns to find a column that has not no data, then past the content of Columns A in tha location.
I am using the code below and I am getting Runtime error 1004 on the second line:
For i = 1 To 256
If Application.CountA(Range(Cells(1, i), Cells(65536, i))) = 0 Then
Columns(2).Cut Destination:=Columns(i)
Exit For
End If
Next i
how can I fix this?
Thanks.
Okey.
I have a spreadsheet with information in some of the colums: ("A:Y").
I want to move(relocate the content of column "A" to any column that does not have data(values).
In other words, I want to cut the content of Column "A", loop through the rest of the columns to find a column that has not no data, then past the content of Columns A in tha location.
I am using the code below and I am getting Runtime error 1004 on the second line:
For i = 1 To 256
If Application.CountA(Range(Cells(1, i), Cells(65536, i))) = 0 Then
Columns(2).Cut Destination:=Columns(i)
Exit For
End If
Next i
how can I fix this?
Thanks.
Okey.