Re: Simple code that works step by step but not alone
From: Jezebel (frolly_at_mkkk.com)
Date: 03/14/04
- Previous message: Conan Kelly: "How do I add a custom shortcut menu"
- In reply to: Dave Neve: "Simple code that works step by step but not alone"
- Next in thread: Dave Neve: "Re: Simple code that works step by step but not alone"
- Reply: Dave Neve: "Re: Simple code that works step by step but not alone"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Mar 2004 07:57:19 +1100
It's not that it doesn't work; just that it works too fast for you to get
five beeps that you can hear. In place of the beep statement, put something
like
Debug.Print "Here ..." & compteur
then run it and check the immediate window.
"Dave Neve" <niquelespammers@freebie.fr> wrote in message
news:OF0nVyfCEHA.2556@TK2MSFTNGP12.phx.gbl...
> Hello
>
> Another simple bit of code that won't quite work.
> Taken from a book, it works if I go through it step by step but when I
press
> 'execute', I only get a single beep.
> 'Compteur' = 'Counter' in English
> 'Boucle' = 'Loop'
>
> Thanks in advance
>
>
> Sub boucle2()
> Dim compteur
> compteur = 1
> While compteur < 5
> Beep
> compteur = compteur + 1
> Wend
> End Sub
>
>
- Previous message: Conan Kelly: "How do I add a custom shortcut menu"
- In reply to: Dave Neve: "Simple code that works step by step but not alone"
- Next in thread: Dave Neve: "Re: Simple code that works step by step but not alone"
- Reply: Dave Neve: "Re: Simple code that works step by step but not alone"
- Messages sorted by: [ date ] [ thread ]