PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Send/Receive through VBA

Reply

Send/Receive through VBA

 
Thread Tools Rate Thread
Old 01-07-2003, 08:32 PM   #1
Ed White
Guest
 
Posts: n/a
Default Send/Receive through VBA


How do I program VBA to have Outlook do a Send/Receive?

I have several email accounts set up in Outlook, and I
have Outlook automatically check for mail every minute.
However, occasionally during the auto send/receive,
Outlook gets hung up on one of the email accounts, and
I'm no longer automatically getting my auto
send/receive. After it hangs, the only way to get my
emails is to manually hit the Send/Receive icon. Is there
a way in VBA to program an auto send/receive every few
minutes to overcome this issue? Thanks.
  Reply With Quote
Old 02-07-2003, 03:29 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Send/Receive through VBA

See http://www.slovaktech.com/code_samples.htm#SendReceive for various
methods.

Be aware that most of them will fire the security prompts in secure
versions of Outlook.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"Ed White" <ewhite2142@hotmail.com> wrote in message
news:035d01c34007$81243b90$a301280a@phx.gbl...
> How do I program VBA to have Outlook do a Send/Receive?
>
> I have several email accounts set up in Outlook, and I
> have Outlook automatically check for mail every minute.
> However, occasionally during the auto send/receive,
> Outlook gets hung up on one of the email accounts, and
> I'm no longer automatically getting my auto
> send/receive. After it hangs, the only way to get my
> emails is to manually hit the Send/Receive icon. Is there
> a way in VBA to program an auto send/receive every few
> minutes to overcome this issue? Thanks.



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off