L
LurfysMa
Is there some way to terminate one iteration in a For Each loop
without terminating the loop itself? The Exit For statement will
terminate the loop. I thought a Next statement might do it, but I cant
get that to work.
Here's what I tried:
For Each obChar In Selection.Characters
Call MsgBox(obChar.Text)
If obChar.Text = "A" Then Next obChar
Call MsgBox("Not an 'A'")
Next obChar
This gets an error on line 3 saying there is a Next without a For.
without terminating the loop itself? The Exit For statement will
terminate the loop. I thought a Next statement might do it, but I cant
get that to work.
Here's what I tried:
For Each obChar In Selection.Characters
Call MsgBox(obChar.Text)
If obChar.Text = "A" Then Next obChar
Call MsgBox("Not an 'A'")
Next obChar
This gets an error on line 3 saying there is a Next without a For.