i have a loop that does a couple things there is a counter and debug.print and a couple other litle things, but inside this loop is another loop, this loop runs till its done then its supposed to go back to the other loop like this:
public sub loopy()
myname = dir(Specified path, vbdirectory)
do while cntr <= 8
myname = dir
debug.print dir
do while cntrx<=6
'does stuff
cntrx=cntrx+1
loop
cntr = cntr+1
loop
end sub
the sub wont cycle to the next 'myname' in this situation however if i get rid of the second loop like this it works fine:
do while cntr <= 8
myname = dir
debug.print dir
cntr = cntr+1
loop
end sub
is ther eosme rule that doesnt let this loop in a loop work?
public sub loopy()
myname = dir(Specified path, vbdirectory)
do while cntr <= 8
myname = dir
debug.print dir
do while cntrx<=6
'does stuff
cntrx=cntrx+1
loop
cntr = cntr+1
loop
end sub
the sub wont cycle to the next 'myname' in this situation however if i get rid of the second loop like this it works fine:
do while cntr <= 8
myname = dir
debug.print dir
cntr = cntr+1
loop
end sub
is ther eosme rule that doesnt let this loop in a loop work?