Stop looping through Excel rows

TimTDP

Registered User.
Local time
Today, 08:25
Joined
Oct 24, 2008
Messages
213
I use the following to loop though rows in an Excel spreadsheet
Code:
For Row = 1 To CountRow
      code that checks value in cell
Next Row

If the code checking the value in the cell meets certain criteria, I want to stop the loop.
How do I do this?

Thanks
 
The code is:
Code:
Exit For
 
Thanks very much
 

Users who are viewing this thread

Back
Top Bottom