Re: nagivating rows and columns
From: Bob Phillips (bob.phillips_at_notheretiscali.co.uk)
Date: 10/11/04
- Next message: Jarek: "Re: minimum value in range"
- Previous message: Myrna Larson: "Re: How do I make a VBA procedure available to all workbooks?"
- In reply to: greg: "nagivating rows and columns"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 21:48:29 +0100
Set oCells = Range("A9").Resize(iRows,1)
For Each oCell In oCells
oCell.Value = "<value>"
Next oCell
--
HTH
RP
"greg" <greg@nospam.com> wrote in message
news:uJ3SnJ9rEHA.2580@TK2MSFTNGP15.phx.gbl...
> 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
>
>
- Next message: Jarek: "Re: minimum value in range"
- Previous message: Myrna Larson: "Re: How do I make a VBA procedure available to all workbooks?"
- In reply to: greg: "nagivating rows and columns"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|