[RESOLVED] Loop Debugging Issue
here in the following Code .Last value is 9000.When i debug suppose i=1 and cursor is on next .when i press f8 during debugging using f8.it goes on mcol.remove 1.again it becomes i=2
at the next time.and when press f8 it goes on mcol.remove 1. but i simple want to go if i want to
go on i=5000.not till i wait i increase upto 1,2,3....5000. is their any way to go directly on any specific number suppose i want to skip loop and i want to go directly on i=8500.Kindly let me know the idea.Any help would be highly appreciated.
Code:
Public Function RemoveAll() As Boolean
Dim i As Integer, last As Integer
last = mCol.Count
For i = 1 To last
mCol.Remove 1
Next
End Function
Re: [RESOLVED] Loop Debugging Issue
I prefer MOD 100 (or whatever). Let the counter go as high as it can
Re: [RESOLVED] Loop Debugging Issue
With the mod function you can check to see if it is = to 0 and have it stop every 100 loops or whatever you choose to use in the mod statement. Just depends on what you want to do.
Code:
If i mod 100= 0 Then
Debug.Print i
End If
Would stop at loop 100 then you could step through one or two if you like and hit F5 and it would stop again at 200 and again at 300 and so on.
Again just depnds on what you want to do