Hello Everyone:

The following loop starts in x then loops thru y 20 times then goes back and finishes x. how do I get it to loop thru x then complete loop y then loop x once more then loop y completely again 20 times then back to x and another 20 y’s. there should be 200 loops today.

? Code:
  1. Do Until X = 10
  2.             X += 1
  3.             MessageBox.Show("Loop X = " & X)
  4.             Do Until y = 20
  5.                 y += 1
  6.                 MessageBox.Show("Loop Y = " & y)
  7.             Loop
  8.  
  9.         Loop
  10.        
  11.     End Sub

I need to figure this out as part of a larger program.

Thanks

Art W.