Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dear all If you have more than one for each loop in a procedure, how can I ge my procedure to loop back to the first loop instead of the last. Regards Andrew ![]() ![]() ![]() -- adncmm198 ----------------------------------------------------------------------- adncmm1980's Profile: http://www.excelforum.com/member.php...fo&userid=1496 View this thread: http://www.excelforum.com/showthread.php?threadid=26604 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
AFAIK, the VB language does not support it. Use a flag to determine the
exit. e.g.: dim bExit as boolean bExit = false For each a in as_collection for each b in bs_collection If [condition to exit] Then bExit = True Exit For End If next b If bExit = True then Exit For End If Next a HTH, Nacho "adncmm1980" wrote in message ... Dear all If you have more than one for each loop in a procedure, how can I get my procedure to loop back to the first loop instead of the last. Regards Andrew ![]() ![]() ![]() ![]() -- adncmm1980 ------------------------------------------------------------------------ adncmm1980's Profile: http://www.excelforum.com/member.php...o&userid=14965 View this thread: http://www.excelforum.com/showthread...hreadid=266040 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
loops???? | Excel Worksheet Functions | |||
Loops | Excel Discussion (Misc queries) | |||
Using For - Next Loops in VB | New Users to Excel | |||
Loops | Excel Programming | |||
help with loops | Excel Programming |