applicationwait not activating c

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Application.wait not activating at correct point | Excel forum

Application.wait not activating at correct point | Excel forum

resolvedResolved · Low Priority · Version 2016

Phillip has attended:
Excel VBA Introduction course
Excel VBA Intermediate course
Excel VBA Advanced course

Application.wait not activating at correct point

Hi,

I'm having a problem with application.wait in that the pause does not seem to be happening in the point of the code that the command is.

I was trying to use it so that an object showed at a certain point but below is a very basic data entry sub that is producing the same problem. When I run this code the pause happens after the word "this" appears and then after 5 seconds the other words appear but I want the pause to happen after "this" "is" "a" appears.

Sub PauseTest()

[a1] = "this"

[b1] = "is"

[c1] = "a"

Application.Wait Now + #12:00:05 AM#

[d1] = "test"


End Sub

RE: application.wait not activating at correct point

Hi Phillip

Thanks so much for your question.

Our VBA trainers are all very busy training today, so to ensure you get the best answer possible we will have to delay our answer until tomorrow.

I hope this is ok.

Regards,

Sarah
Excel Trainer

RE: application.wait not activating at correct point

Hi Phillip,

I am sorry that you had to wait for the answer.

Sub PauseTest()

[a1] = "this"

[b1] = "is"

[c1] = "a"

Application.ScreenUpdating = True

Application.Wait Now + #12:00:05 AM#

[d1] = "test"


End Sub




Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

RE: application.wait not activating at correct point

excellent, thank you.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Moving between split pane sections in a spreadsheet

If you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections:

F6 - Move to the next pane
Shift + F6 - Move to the previous pane

View all Excel hints and tips


Server loaded in 0.07 secs.