steve_bris
Registered User.
- Local time
- Today, 14:07
- Joined
- Mar 22, 2005
- Messages
- 30
Hi.
I would like to assign the value of a column of cells to a variable with a different number on the end as it moves down the rows.
Dim No as integer
No = 1
Sheets("Sheet1").Select
Range("J1").Select
Do
Loop Until ActiveCell = ""
So if cell J1 has John in it, then ROLE1 = "John"..........and cell J2 has me, then ROLE2 = "Me"
Thanks for any help
Steve
I would like to assign the value of a column of cells to a variable with a different number on the end as it moves down the rows.
Dim No as integer
No = 1
Sheets("Sheet1").Select
Range("J1").Select
Do
"ROLE" & No = Activecell.value <--------------- This is the line that gives me an error
ActiveCell.offset(rowOffset:=1, columnOffset:=0).Activate
No = No + 1
ActiveCell.offset(rowOffset:=1, columnOffset:=0).Activate
No = No + 1
Loop Until ActiveCell = ""
So if cell J1 has John in it, then ROLE1 = "John"..........and cell J2 has me, then ROLE2 = "Me"
Thanks for any help

Steve
Last edited: