Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2004

Tip: Looking for answers? Try searching our database.

Outlook 2003 Macro Send/Receive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 27 Jul 2004 13:37 GMT
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
Sue Mosher [MVP-Outlook] - 27 Jul 2004 13:54 GMT
Take a look at the SyncObject.Start method.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi,
>
[quoted text clipped - 7 lines]
>
> Mike
Mike - 28 Jul 2004 14:33 GMT
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?

> Take a look at the SyncObject.Start method.
>
[quoted text clipped - 9 lines]
> >
> > Mike
Sue Mosher [MVP-Outlook] - 28 Jul 2004 14:59 GMT
That's the purpose of the SyncObject.SyncEnd event.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> 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
[quoted text clipped - 16 lines]
> > >
> > > Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.