Thread
:
Select a range by column number
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Select a range by column number
range(cells(2,i),cells(12,i)).select
However, you usually do NOT need to select to do what is needed and it is
better NOT to select.
--
Don Guillett
SalesAid Software
"David Andrews" wrote in message
news:_8yai.167$%M5.6@trndny02...
I need to select a range of cells knowing only the column index number (i)
So Range("C2:C12") needs to be Range("i2:i12").
I know there is the Cells command:
like Cells(5, i).Select
but this only selects one cell. I guess its a syntax problem for me.
Ideally i need to select a range with variable for row and column..any
tips
?
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett