Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-29-2013, 03:30 AM
OTPM OTPM is offline How to a For loop in VBA Windows 7 32bit How to a For loop in VBA 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to a For loop in VBA Macro to loop in Word Yamaha Rider Word VBA 2 02-07-2012 05:33 PM
How to use for loop in formula in VBA? tinfanide Excel Programming 1 12-06-2011 08:33 AM
While loop not working right Cbrehm Excel Programming 0 05-11-2011 11:05 AM
How to a For loop in VBA Continuous Loop cksm4 Word 6 01-06-2011 09:03 PM
Outlook 2003 restart in a loop Stegel Outlook 0 06-29-2007 12:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft