Re: Simple code that works step by step but not alone

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jezebel (frolly_at_mkkk.com)
Date: 03/14/04

  • Next message: Mark Hammer: "Re: Set datasource for template in code w/no user intervention"
    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
    >
    >


  • Next message: Mark Hammer: "Re: Set datasource for template in code w/no user intervention"