Re: code loops 1024 times not what i ask
- From: "Norman Jones" <normanjones@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 7 Aug 2005 11:16:56 +0100
Hi Rob,
Your code works for me.
To test it, I changed:
x = x + 1
to
x = x + 1
Debug.Print x
What final value do you get in the intermediate window if you add the debug
line?
---
Regards,
Norman
"Rob Hargreaves" <nrgsav@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:42f5dc50_4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
>
>
.
- References:
- code loops 1024 times not what i ask
- From: Rob Hargreaves
- code loops 1024 times not what i ask
- Prev by Date: code loops 1024 times not what i ask
- Next by Date: Re: code loops 1024 times not what i ask
- Previous by thread: code loops 1024 times not what i ask
- Next by thread: Re: code loops 1024 times not what i ask
- Index(es):
Relevant Pages
|