Outlook 2003 Macro Send/Receive

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi,

How can I invoke a send/receive in Outlook 2003 by macro. I want to
use the windows scheduler to launch outlook, which will then send and
receive any email and close outlook.

Any suggestions?

Thanks in advance.

Mike
 
I have got the send/receive process working now. The problem I have
is that I need to wait for the send/receive process has completed
before continuing with the rest of the macro. At the moment my call
to close the application occurs before the send/receive procedure has
completed. Is there a way to wait or loop until the send/receive has
completed?
 
That's the purpose of the SyncObject.SyncEnd event.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Mike said:
I have got the send/receive process working now. The problem I have
is that I need to wait for the send/receive process has completed
before continuing with the rest of the macro. At the moment my call
to close the application occurs before the send/receive procedure has
completed. Is there a way to wait or loop until the send/receive has
completed?



"Sue Mosher [MVP-Outlook]" <[email protected]> wrote in message
Take a look at the SyncObject.Start method.
 
Back
Top