code loops 1024 times not what i ask



Hi

I wonder if someone can help, I am trying to repeat some code 200 times can
you tell me where I am going wrong in my loop.

(It is doing 1024 times!)

Sub test()
Dim x As Integer

Do Until x = 200
'code to repeat
x = x + 1
Loop

End Sub

thanks for your help.

Rob



.