asddsa88
02-26-2010, 07:56 AM
Hello, I just started programming in vba and I can't figure this out!
I have some instructions that must be repeated 15 times,
since I don't know ho to use a loop I just copied and pasted them 15 times and I got the job done... of course this is not a smart way to solve the problem,
so let's say the code to be repeated is #CODE#
how would you write the loop function?
do loop ...
#CODE#
end loop
any ideas? I know it's super simple,but I just can't do it!!
thanks
I have some instructions that must be repeated 15 times,
since I don't know ho to use a loop I just copied and pasted them 15 times and I got the job done... of course this is not a smart way to solve the problem,
so let's say the code to be repeated is #CODE#
how would you write the loop function?
do loop ...
#CODE#
end loop
any ideas? I know it's super simple,but I just can't do it!!
thanks