03-28-2013, 03:26 PM
if value reaches desired one, set Exit for.
Code:
For i=1 To j
Msgbox ("I value = "&i&vbcrlf&"J value = "&j)
j=j+1
if i=5 then
Exit for
End If
next
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.