Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm looping through a named range looking for cells whose value matches a
criteria. For each of those cells that match, I want to assign the cells value to an "incremented" variable (Var1, Var2, Var3, etc.) Counter = 1 Set rng = range("myRange") 1 For each cell in rng 2 If cell.value = "whatever" 3 Var & counter = cell.value 4 End if 5 Next cell I cant get line 3 to work (Var1, Var2, Var3) Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
incremented numbering | Excel Discussion (Misc queries) | |||
How can a single cell be incremented? i.e. N=N+1 | Excel Discussion (Misc queries) | |||
setting object variable | Excel Programming | |||
Setting variable = to sheet name | Excel Programming | |||
setting a range variable equal to the value of a string variable | Excel Programming |