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

applicationwait not activating c

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

Application.wait not activating at correct point

ResolvedVersion 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:

Activating the formula bar with the keyboard in Excel 2010

The formula bar in Excel 2010 contains a number of different formulas. However, it is time consuming to open the formula bar every time and insert the formula using the mouse. Instead, you can activate the formula bar with the keyboard. Simply press the F2 button on the keyboard then the information in the cell will expand allowing you to edit the information in the cell.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.