View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
Berend Botje[_10_] Berend Botje[_10_] is offline
external usenet poster
 
Posts: 1
Default Skip to Next "x" inside of a For Next Loop

You could also try:

For x = 1 to 100
criteria 1
criteria 2
if criteria 2 = true then goto NextX
criteria 3

NextX:
Next x

This way, the script will run normally, and if criteria2 is true i
will skip criteria 3 (and further script) and go immediately to th
Next x statement

--
Message posted from http://www.ExcelForum.com