If you preset your fill range so that it specifies column T as the end of the
range it should work.
Sub atofl()
ActiveCell.Offset(0, -1).Range("A1").Select
Set FillRange = Range(Cells(ActiveCell.Row, ActiveCell.Column), _
Cells(ActiveCell.Row, "T"))
Selection.AutoFill Destination:=FillRange, Type:=xlFillSeries
ActiveCell.Range("A1:I1").Select
End Sub
> I've got a macro that will take the value in the previous cell and
> extend the series to the adjacent cells. Unfortunately, it isn't
[quoted text clipped - 11 lines]
>
> So how do I tell it to always end in Row T no matter where it starts?
Barkomatic - 12 Apr 2008 17:09 GMT
> ActiveCell.Offset(0, -1).Range("A1").Select
> Set FillRange = Range(Cells(ActiveCell.Row, ActiveCell.Column), _
> Cells(ActiveCell.Row, "T"))
> Selection.AutoFill Destination:=FillRange, Type:=xlFillSeries
> ActiveCell.Range("A1:I1").Select
Thanks! That worked like a charm. I appreciate the quick response,
too.