Good morning,
I have the following code which works but only fills down one row and I want it to fill down to the last row but I cannot work it out.
Dim Col As Range
For Each Col In Range("L:Q").Columns
With Cells(Rows.Count, Col.Column).End(xlUp)
.Offset(1).Formula = .Formula
.Resize(2).FillDown
End With
Next
Can someone tell me how to get it to copy down to the last cell in all the columns.
Thanks for your help. Andrew
<tbody>
</tbody><colgroup><col><col><col span="15"></colgroup>
I have the following code which works but only fills down one row and I want it to fill down to the last row but I cannot work it out.
Dim Col As Range
For Each Col In Range("L:Q").Columns
With Cells(Rows.Count, Col.Column).End(xlUp)
.Offset(1).Formula = .Formula
.Resize(2).FillDown
End With
Next
Can someone tell me how to get it to copy down to the last cell in all the columns.
Thanks for your help. Andrew
HKDDSHH | 31-Jan-13 | HUS | 8 | 8 | 8 | 0 | -896.469 | 637.037 | -636.555 | -895.987 | January | 2013 | Comp | -112.059 | Thursday | Midweek |
HKDDSHH | 31-Jan-13 | LBR | 27 | 55 | 5 | 22 | 3398.06 | 869.801 | 1137.463 | 5405.324 | January | 2013 | Transient | 125.8541 | Thursday | Midweek |
HKDDSHH | 31-Jan-13 | LCR | 9 | 16 | 2 | 7 | 812.4588 | 403.5741 | 92.46083 | 1308.494 | ||||||
HKDDSHH | 31-Jan-13 | LPP | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||
HKDDSHH | 31-Jan-13 | SOV | 3 | 6 | 0 | 3 | 110.8105 | 116.1265 | 105.4556 | 332.3927 | ||||||
HKDDSHH | 31-Jan-13 | Unknown | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
<tbody>
</tbody><colgroup><col><col><col span="15"></colgroup>