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"
andichildsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.