Columns are just as easy if your variable is a letter, but if it is a
number, you either
convert to a letter
Range("A1:" & Chr(startcol + 64) & "10").Select
or use Cells
Range("A1", Cells(10, startcol)).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?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.