PC Review


Reply
Thread Tools Rate Thread

automatic send of emails in MS Outlook

 
 
Lewis
Guest
Posts: n/a
 
      5th Jul 2007
Hi

Is there a way of automatically sending emails from an outlook drafts
box without going into each mail and clicking "send".

Thanks for any help

Lewis

 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      6th Jul 2007

You might do that with a few lines of VBA:

Public Sub SendSelectedMail()
Dim Sel As Outlook.Selection
Dim obj As Object

Set Sel = Application.ActiveExplorer.Selection
If Sel.Count Then
Set obj = Sel(1)
If TypeOf obj Is Outlook.MailItem Then
obj.Send
End If
End If
End Sub

By customizing your commandbar you can add a button to start that macro:
right click on a commandbar, Customize/Commands/Macros, drag the macro's
name onto the bar. With another right click on the new button you might also
change its face.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>


Am Thu, 05 Jul 2007 08:41:44 -0700 schrieb Lewis:

> Hi
>
> Is there a way of automatically sending emails from an outlook drafts
> box without going into each mail and clicking "send".
>
> Thanks for any help
>
> Lewis

 
Reply With Quote
 
Lewis
Guest
Posts: n/a
 
      6th Jul 2007
Hello Michael,

Thanks for that it works brilliantly. However, it will only send one
email per click of the macro button, is there a way to tweak the code
to send multiple items once highlighted.
Thank you.

Lewis

On 6 Jul, 07:43, "Michael Bauer [MVP - Outlook]" <m...@mvps.org>
wrote:
> You might do that with a few lines of VBA:
>
> Public Sub SendSelectedMail()
> Dim Sel As Outlook.Selection
> Dim obj As Object
>
> Set Sel = Application.ActiveExplorer.Selection
> If Sel.Count Then
> Set obj = Sel(1)
> If TypeOf obj Is Outlook.MailItem Then
> obj.Send
> End If
> End If
> End Sub
>
> By customizing your commandbar you can add a button to start that macro:
> right click on a commandbar, Customize/Commands/Macros, drag the macro's
> name onto the bar. With another right click on the new button you might also
> change its face.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html...063&cmd=detail =en&pub=6>
>
> Am Thu, 05 Jul 2007 08:41:44 -0700 schrieb Lewis:
>
> > Hi

>
> > Is there a way of automatically sending emails from an outlook drafts
> > box without going into each mail and clicking "send".

>
> > Thanks for any help

>
> > Lewis



 
Reply With Quote
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      6th Jul 2007

That would be:

Public Sub SendSelectedMail()
Dim Sel As Outlook.Selection
Dim obj As Object
Dim i&

Set Sel = Application.ActiveExplorer.Selection
For i=1 to Sel.Count
Set obj = Sel(i)
If TypeOf obj Is Outlook.MailItem Then
obj.Send
End If
Next
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>


Am Fri, 06 Jul 2007 01:27:54 -0700 schrieb Lewis:

> Hello Michael,
>
> Thanks for that it works brilliantly. However, it will only send one
> email per click of the macro button, is there a way to tweak the code
> to send multiple items once highlighted.
> Thank you.
>
> Lewis
>
> On 6 Jul, 07:43, "Michael Bauer [MVP - Outlook]" <m...@mvps.org>
> wrote:
>> You might do that with a few lines of VBA:
>>
>> Public Sub SendSelectedMail()
>> Dim Sel As Outlook.Selection
>> Dim obj As Object
>>
>> Set Sel = Application.ActiveExplorer.Selection
>> If Sel.Count Then
>> Set obj = Sel(1)
>> If TypeOf obj Is Outlook.MailItem Then
>> obj.Send
>> End If
>> End If
>> End Sub
>>
>> By customizing your commandbar you can add a button to start that macro:
>> right click on a commandbar, Customize/Commands/Macros, drag the macro's
>> name onto the bar. With another right click on the new button you might

also
>> change its face.
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>> Organize eMails:
>> <http://www.vboffice.net/product.html...063&cmd=detail =en&pub=6>
>>
>> Am Thu, 05 Jul 2007 08:41:44 -0700 schrieb Lewis:
>>
>>> Hi

>>
>>> Is there a way of automatically sending emails from an outlook drafts
>>> box without going into each mail and clicking "send".

>>
>>> Thanks for any help

>>
>>> Lewis

 
Reply With Quote
 
Lewis
Guest
Posts: n/a
 
      6th Jul 2007
On 6 Jul, 10:04, "Michael Bauer [MVP - Outlook]" <m...@mvps.org>
wrote:
> That would be:
>
> Public Sub SendSelectedMail()
> Dim Sel As Outlook.Selection
> Dim obj As Object
> Dim i&
>
> Set Sel = Application.ActiveExplorer.Selection
> For i=1 to Sel.Count
> Set obj = Sel(i)
> If TypeOf obj Is Outlook.MailItem Then
> obj.Send
> End If
> Next
> End Sub
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html...063&cmd=detail =en&pub=6>
>
> Am Fri, 06 Jul 2007 01:27:54 -0700 schrieb Lewis:
>
>
>
> > Hello Michael,

>
> > Thanks for that it works brilliantly. However, it will only send one
> > email per click of the macro button, is there a way to tweak the code
> > to send multiple items once highlighted.
> > Thank you.

>
> > Lewis

>
> > On 6 Jul, 07:43, "Michael Bauer [MVP - Outlook]" <m...@mvps.org>
> > wrote:
> >> You might do that with a few lines of VBA:

>
> >> Public Sub SendSelectedMail()
> >> Dim Sel As Outlook.Selection
> >> Dim obj As Object

>
> >> Set Sel = Application.ActiveExplorer.Selection
> >> If Sel.Count Then
> >> Set obj = Sel(1)
> >> If TypeOf obj Is Outlook.MailItem Then
> >> obj.Send
> >> End If
> >> End If
> >> End Sub

>
> >> By customizing your commandbar you can add a button to start that macro:
> >> right click on a commandbar, Customize/Commands/Macros, drag the macro's
> >> name onto the bar. With another right click on the new button you might

> also
> >> change its face.

>
> >> --
> >> Viele Gruesse / Best regards
> >> Michael Bauer - MVP Outlook
> >> Organize eMails:
> >> <http://www.vboffice.net/product.html?id=2006063&cmd=detail=en&pub=6>

>
> >> Am Thu, 05 Jul 2007 08:41:44 -0700 schrieb Lewis:

>
> >>> Hi

>
> >>> Is there a way of automatically sending emails from an outlook drafts
> >>> box without going into each mail and clicking "send".

>
> >>> Thanks for any help

>
> >>> Lewis


Hello Michael

Thank you for that you have bailed me out of a big hole, I now have a
happy customer.
Cheers
Lewis

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook 2003 automatic send receive does not receive all emails Neo Microsoft Outlook Discussion 1 28th Jan 2010 01:35 PM
automatic set up Calendar and Mail to send emails Metrogirl720 Microsoft Outlook Discussion 1 11th Sep 2009 03:51 AM
Using Outlook to send automatic emails Eduardo Santibanez Microsoft Outlook Discussion 1 11th Mar 2009 01:46 PM
How do you have outlook send automatic recurring emails? N. Vu Microsoft Outlook Discussion 1 16th Oct 2008 07:00 PM
Automatic send of emails from outlook without approval Andrew Robertson Microsoft Outlook Discussion 2 25th Sep 2005 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:09 PM.