Thread: [Solved] How to a For loop in VBA
View Single Post
 
Old 01-29-2013, 03:30 AM
OTPM OTPM is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
Try:

For i = 1 to 10
...do some work
If [some condition] then
...do the rest of the work
Else
Next i

Good luck.
Tony
Reply With Quote