chintan desai
New Member
- Joined
- Sep 20, 2011
- Messages
- 8
Hi,
I have written a program but for some reason when I run it, it keeps running until I manually end it. Weirdly, when I end it the program has actually worked but for some reason it doesn't stop itself.
Do
For i = 3 To 758
Range("B" & i).Value = i
Range("G" & i).FormulaR1C1 = "=IF(RC[-5]=R[-1]C[-5],IF(RC[-4]=""Buy"",R[-1]C+RC[-2],R[-1]C-RC[-2]),RC[-2])"
Next i
Loop Until (Range("F" & i).Value <> "") And (Range("F" & i).Value <> " ")
Can anyone tell me why this program works, but doesn't end by itself? Thanks!
I have written a program but for some reason when I run it, it keeps running until I manually end it. Weirdly, when I end it the program has actually worked but for some reason it doesn't stop itself.
Do
For i = 3 To 758
Range("B" & i).Value = i
Range("G" & i).FormulaR1C1 = "=IF(RC[-5]=R[-1]C[-5],IF(RC[-4]=""Buy"",R[-1]C+RC[-2],R[-1]C-RC[-2]),RC[-2])"
Next i
Loop Until (Range("F" & i).Value <> "") And (Range("F" & i).Value <> " ")
Can anyone tell me why this program works, but doesn't end by itself? Thanks!