various ways -
With ActiveSheet.Range("B1")
.AutoFill .Offset(0, -1).CurrentRegion.Columns(2)
End With
The above would only work correctly if A1 was in the top row of its
CurrentRegion, which in this case it must be as A1 is clearly the top row.
If that can't be guaranteed here's another way
Sub Test2
Dim rng As Range
Set rng = ActiveSheet.Range("B2")
rng.AutoFill Range(rng, rng.Offset(0, -1).End(xlDown).Offset(0, 1))
End Sub
BTW, no need to 'select' cells
Regards,
Peter T
> Hi,
>
[quoted text clipped - 17 lines]
> Range("B1:B316").Select
> End Sub
Basta1980 - 19 Mar 2008 11:32 GMT
Peter T,
Thnx for the tip. Sub Test 2 did the trick!
Regards
Basta1980
> various ways -
>
[quoted text clipped - 47 lines]
> > Range("B1:B316").Select
> > End Sub