Hello all,
I need to loop through a column and copy paste the text string contents 24 columns to the right in this spreadsheet.
This code loops, but I can not figure out how to copy/paste the exact value in the cell in column B.
If a cell in column B happens to be ABC, I need that value copied 24 columns to the right.
ThaSub CopyColumn()
Dim c As Range
' Get Number of Lines and star scaning Row by Row
nlines = ActiveSheet.Range("A5").End(xlDown).Row
n_of_desc = 0
For i = 5 To nlines
Range("B" & i).Select
ActiveCell.Offset(0, 24).Value = ("B" & i).value
Next i
End Sub
Thanks to anyone for any help here.
VBA DOES NOT LIKE: ("B" & i).value for whatever reason!?
I need to loop through a column and copy paste the text string contents 24 columns to the right in this spreadsheet.
This code loops, but I can not figure out how to copy/paste the exact value in the cell in column B.
If a cell in column B happens to be ABC, I need that value copied 24 columns to the right.
ThaSub CopyColumn()
Dim c As Range
' Get Number of Lines and star scaning Row by Row
nlines = ActiveSheet.Range("A5").End(xlDown).Row
n_of_desc = 0
For i = 5 To nlines
Range("B" & i).Select
ActiveCell.Offset(0, 24).Value = ("B" & i).value
Next i
End Sub
Thanks to anyone for any help here.
VBA DOES NOT LIKE: ("B" & i).value for whatever reason!?