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 |
All times are GMT +1. The time now is 11:42 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com