• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

Pause between lines

I need to be able to pause the script between lines. I have tried the sleep command with no luck.

Key = "A"
Label1.Caption = Key
PAUSE
Key = "B"
0
andichilds
Asked:
andichilds
  • 2
  • 2
  • 2
1 Solution
 
twardCommented:
Try:

Key = "A"
Label1.Caption = Key
Call msgbox("PAUSE")
Key = "B"
0
 
andichildsAuthor Commented:
i don't want a message box appearing.
All i want is "A" to appear in the label, which is then replaced by "B" a second later.
0
 
KhollADCommented:
If I understood your question it sounds like :

Key = "A"
Label1.Caption = Key
For i = 0 To 20000
    DoEvents
Next
Key = "B"
Label1.Caption = Key
Label1.Refresh
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
andichildsAuthor Commented:
That's great, thanks a lot!
0
 
twardCommented:
Thats not a pause!  Thats a refresh...  Sorry didn't realize that was what you wanted.
0
 
KhollADCommented:
Ok, thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now