Triggering Outlook's Send\Receive Button 
Author Message
 Triggering Outlook's Send\Receive Button

Does anyone know how to trigger Outlook's Send/Receive button
from within a VB application?

I already have a working program that starts up an instance of Outlook
and creates various e-mail messages. However the [mailitem].Send
method merely puts the messages into the outbox. What I want to do
before quitting is make Outlook go on-line and actually send this
batch of messages, just as if I had clicked the Send/Receive button or
pressed the <F5> key.

I'm sure there's an easy way to do it but I can't find it in the Office
helpfile and Outlook still has no macro recorder.

Hopefully,

Christy



Sun, 27 Jul 2003 23:25:01 GMT  
 Triggering Outlook's Send\Receive Button


Quote:
> Tested & works for Outlook 2K.

> Public Sub SendNow()

>   Dim ctl As Office.CommandBarControl
>   Dim cbpop As Office.CommandBarPopup
>   Dim cb As Office.CommandBar

>   Set cb = Application.ActiveExplorer.CommandBars("Standard")
>   Set ctl = cb.FindControl(ID:=5488, Recursive:=True)

>   ctl.Execute

> End Sub

> --
> Neo [MVP-Outlook]

Thanks a lot Neo  (how's Trinity by the way? <g>)

I'll certainly give this a try.

Regards,

Christy



Tue, 29 Jul 2003 01:46:45 GMT  
 Triggering Outlook's Send\Receive Button
{*filter*} as ever...


Quote:


> > Tested & works for Outlook 2K.

> > Public Sub SendNow()

> >   Dim ctl As Office.CommandBarControl
> >   Dim cbpop As Office.CommandBarPopup
> >   Dim cb As Office.CommandBar

> >   Set cb = Application.ActiveExplorer.CommandBars("Standard")
> >   Set ctl = cb.FindControl(ID:=5488, Recursive:=True)

> >   ctl.Execute

> > End Sub

> > --
> > Neo [MVP-Outlook]

> Thanks a lot Neo  (how's Trinity by the way? <g>)

> I'll certainly give this a try.

> Regards,

> Christy



Tue, 29 Jul 2003 10:07:01 GMT  
 Triggering Outlook's Send\Receive Button
I see this uses Office. Does this Sub apply to Office 95, 97 or 2000?
Does this work for Win95, Win98, WinME or NTWS 4.0?
I've got some mixes between W95, W98 and Win95, W98 and NTWS 4.0

Thanks,
GG



Quote:
> Tested & works for Outlook 2K.

> Public Sub SendNow()

>   Dim ctl As Office.CommandBarControl
>   Dim cbpop As Office.CommandBarPopup
>   Dim cb As Office.CommandBar

>   Set cb = Application.ActiveExplorer.CommandBars("Standard")
>   Set ctl = cb.FindControl(ID:=5488, Recursive:=True)

>   ctl.Execute

> End Sub

> --
> Neo [MVP-Outlook]

> Are you considering installing the Email Security Patch or Office 2000
> Service Pack 2?
> Read this page first and consider your choice carefully if you depend on
> accessing specific attachments or have programs that need access to
> Outlook's address book.
> http://www.slipstick.com/outlook/esecup.htm



> > Does anyone know how to trigger Outlook's Send/Receive button
> > from within a VB application?

> > I already have a working program that starts up an instance of Outlook
> > and creates various e-mail messages. However the [mailitem].Send
> > method merely puts the messages into the outbox. What I want to do
> > before quitting is make Outlook go on-line and actually send this
> > batch of messages, just as if I had clicked the Send/Receive button or
> > pressed the <F5> key.

> > I'm sure there's an easy way to do it but I can't find it in the Office
> > helpfile and Outlook still has no macro recorder.

> > Hopefully,

> > Christy



Fri, 01 Aug 2003 22:28:52 GMT  
 Triggering Outlook's Send\Receive Button
Applies to Office 2000.

I have only tested under Win98/Win2K, but it should work for the other O/S's
that have Office 2000 installed.


Quote:
> I see this uses Office. Does this Sub apply to Office 95, 97 or 2000?
> Does this work for Win95, Win98, WinME or NTWS 4.0?
> I've got some mixes between W95, W98 and Win95, W98 and NTWS 4.0

> Thanks,
> GG



> > Tested & works for Outlook 2K.

> > Public Sub SendNow()

> >   Dim ctl As Office.CommandBarControl
> >   Dim cbpop As Office.CommandBarPopup
> >   Dim cb As Office.CommandBar

> >   Set cb = Application.ActiveExplorer.CommandBars("Standard")
> >   Set ctl = cb.FindControl(ID:=5488, Recursive:=True)

> >   ctl.Execute

> > End Sub

> > --
> > Neo [MVP-Outlook]

> > Are you considering installing the Email Security Patch or Office 2000
> > Service Pack 2?
> > Read this page first and consider your choice carefully if you depend on
> > accessing specific attachments or have programs that need access to
> > Outlook's address book.
> > http://www.slipstick.com/outlook/esecup.htm



> > > Does anyone know how to trigger Outlook's Send/Receive button
> > > from within a VB application?

> > > I already have a working program that starts up an instance of Outlook
> > > and creates various e-mail messages. However the [mailitem].Send
> > > method merely puts the messages into the outbox. What I want to do
> > > before quitting is make Outlook go on-line and actually send this
> > > batch of messages, just as if I had clicked the Send/Receive button or
> > > pressed the <F5> key.

> > > I'm sure there's an easy way to do it but I can't find it in the
Office
> > > helpfile and Outlook still has no macro recorder.

> > > Hopefully,

> > > Christy



Sat, 02 Aug 2003 02:14:53 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Triggering Outlook's Send\Receive button

2. Outlook 'send and receive'

3. Activiting the send/receive button in Outlook 2000

4. Can't send/receive in Outlook

5. outlook 2000 won't send/receive

6. Triggering Outlook's 'Send/Receive' command

7. Please Help Trigger Send & receive

8. Outlook Send Receive scribt problem

9. Outlook Send/Receive - Someone knows the answer

10. Outlook Send/Receive Group Failure

11. Outlook- Delayed sending and receiving

12. Send/Receive in Outlook - as pop server

 

 
Powered by phpBB® Forum Software