How to make code waiting until Outlook finishes its job

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I activate Outlook in code and like to make the code wait until Outlook is
done.How can I do it?

Clara
 
This causes a 10 second pause. You can set it for whatever amount of time
seems appropriate.

newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 10
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top