B
Bob J.
Does anybody know what the marco command(s) are for
selecting a range of cells in a column using a variable?
selecting a range of cells in a column using a variable?
-----Original Message-----
yes, hope this example helps:
Sub SelectRows2To5InCol()
Dim Col
Col = 3
Range(Cells(2, Col), Cells(5, Col)).Select
End Sub
regards, Mika
variable?
.
-----Original Message-----
Range(Cells(TopLeftRow,TopLeftColumn),Cells (BottomRightRow,BottomRightColumn
)).Select
Note that you don't need to 'select' a range to use it..
With
Range(Cells(TopLeftRow,TopLeftColumn),Cells (BottomRightRow,BottomRightColumn
))
.Clear
.Interior.Colorindex=3
End With
--
Patrick Molloy
Microsoft Excel MVP
----------------------------------
variable?
.