Hi
This code is working but only copying 2 rows down instead of grabbing all till last data row?
I think it's to do with the offset or the columns /rows set but don't know how to solve?
Many thanks
This code is working but only copying 2 rows down instead of grabbing all till last data row?
I think it's to do with the offset or the columns /rows set but don't know how to solve?
Code:
Sub TransposeToMergedCells()
Dim StartCell As Range
Dim DestCell As Range
Set StartCell = Worksheets("HRG Clients ").Range("c3") 'Source sheet
Set DestCell = Worksheets("COD Mapping").Range("d1:az1") 'Destination sheet
For c = 1 To 1
For r = 1 To 25
DestCell.Offset(0, r - 1) = StartCell.Offset(r - 1, c - 1)
Next
Set DestCell = DestCell.Offset(1, 0)
Next
End Sub
Many thanks