iknowu99
Well-known Member
- Joined
- Dec 26, 2004
- Messages
- 1,158
- Office Version
- 2016
Hello MrExcellers, How would you create function that takes the parameter to make calculation of nested loops. Specifically the repetition of "for " line reproduced inside function?
For ex:
for a=1 to 10
for b=1 to 10
for c=1 to 10
for d=1 to 10
'calculations
next d
next c
next b
next a
as function would be
f(loops, ubound)
f(4, 10)
For ex:
for a=1 to 10
for b=1 to 10
for c=1 to 10
for d=1 to 10
'calculations
next d
next c
next b
next a
as function would be
f(loops, ubound)
f(4, 10)
Last edited: