Stumped
Sorry - I essentially was wondering whether it was possible to include two
'Next' Statements in one For loop?
"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
this will even skip 3, but don't know what you're trying to accomplish
Sub test_loop()
Dim k As Long
For k = 1 To 5
If k = 3 Then
'do nothing
Else
MsgBox k
End If
Next k
End Sub
--
Gary
"Andibevan" wrote in message
...
Hi,
If I try the following I get a Next without For error - Is it possible
to
do
something like this?
Sub test_loop()
For k = 1 To 5
If k = 3 Then
Next k
Else
MsgBox k
End If
Next k
End Sub
TIA
Andy
|