ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   nagivating rows and columns (https://www.excelbanter.com/excel-programming/313190-nagivating-rows-columns.html)

greg

nagivating rows and columns
 
hello,
i am trying to fill in some data.
i will know that there are always 6 columns.
and i have a variable that has the rows in it. iRows.
i am trying to find a good way to nagivate through the cells.
i see there is a range.next. which i can move to the right with.
is there a down method?
so i have:
Set oCell = Range("A9") 'start cell
oCell.Value = "<value"
Set oCell = oCell.Next


thanks in advance



Bob Phillips[_6_]

nagivating rows and columns
 

Set oCells = Range("A9").Resize(iRows,1)
For Each oCell In oCells
oCell.Value = "<value"
Next oCell

--

HTH

RP

"greg" wrote in message
...
hello,
i am trying to fill in some data.
i will know that there are always 6 columns.
and i have a variable that has the rows in it. iRows.
i am trying to find a good way to nagivate through the cells.
i see there is a range.next. which i can move to the right with.
is there a down method?
so i have:
Set oCell = Range("A9") 'start cell
oCell.Value = "<value"
Set oCell = oCell.Next


thanks in advance






All times are GMT +1. The time now is 08:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com