Outlook Application.OnTime not working in Outlook VBA

Joined
Feb 21, 2018
Messages
216
Reaction score
86
Hi,

I want to schedule send/recieve after every 2 minutes...

timestring = "00:02:00"
TimeToRun = Now + TimeValue(timestring)
Application.OnTime TimeToRun, "Sync"

This logic works fine in Excel-VBA but not in Outlook VBA. Outlook VBA does not recognize :
Application.OnTime


Any suggestions, please.
 

Becky

Webmistress
Joined
Mar 25, 2003
Messages
7,424
Reaction score
1,511
If you want to schedule a send/receive every two minutes you can do it through the options - just go to File > Options > Advanced > Send/Receive and then set up the schedule you want. Hope this helps!
 

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

Top