Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
variable number of For Next loops
Maybe...
dim iCtr as long dim X as long x = 99 for ictr = 1 to x msgbox ictr next ictr KAH wrote: Is there any way I can have a variable number of nested For ... Next loops? In other words, I want x loops. If x=2 there would be 2 loops, if x=3, 3 loops. This is a follow-up to a question I posted May 29 about all permutations. The answer I got was helpful and gave me ideas but didn't actually solve my problem. I realize what I really need to figure out is the variable number of loops. Thanks for any help. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Variable Step rates in loops | Excel Programming | |||
How to sum a variable number of items | Excel Worksheet Functions | |||
Error Number: 91 object variable or With block Variable not set | Excel Programming | |||
variable string and loops | Excel Programming | |||
Using a variable as a Row number | Excel Programming |