Set the columns for emails. it will take email one by one and send the mail 
from outlook automatically without showing any notification you can also 
use msgbox function to check the list of of users one by one. here the 
email column is For Each cell In Range("AJ2:AJ300")
Regards,
Mandeep Baluja 
Excel Specialist.
https://www.linkedin.com/profile/view?id=312532939
https://www.facebook.com/VBAEXCELSQL?ref=hl

On Saturday, November 22, 2014 6:52:37 PM UTC+5:30, Laxmanan M wrote:
>
> Thanks Mandeep,
>
> I have couple of questions here.
>
> With regards to the e-mail it sends, who will receive the email when I run 
> the macro?
>
> Will this open up an email and I populate the email address?
>
>
> Laxman
>
> On Friday, November 21, 2014 3:48:00 PM UTC+5:30, Mandeep Baluja wrote:
>>
>> Sub Mail_Outlook_With_Signature_Html_1()
>> ' Working in Office 2000-2013
>>     Dim OutApp As Object
>>     Dim OutMail As Object
>>     Dim strbody As String
>>  Dim cell As Range
>>  
>>     Set OutApp = CreateObject("Outlook.Application")
>>     Set OutMail = OutApp.CreateItem(0)
>>
>>     strbody = "Hello"
>>     
>> For Each cell In Range("AJ2:AJ300")
>>     On Error Resume Next
>>
>>     With OutMail
>>         .Display
>>         .To = cell.Value
>>         .CC = ""
>>         .BCC = ""
>>         .Subject = "New Start" & cell.Value
>>        
>>         .Send
>>     End With
>>
>>     On Error GoTo 0
>>     Set OutMail = Nothing
>>     Set OutApp = Nothing
>> Next
>>
>> End Sub
>>
>> Regards,
>> Mandeep Baluja 
>> Excel Specialist.
>> https://www.linkedin.com/profile/view?id=312532939
>> https://www.facebook.com/VBAEXCELSQL?ref=hl
>>
>> On Thursday, November 20, 2014 10:39:07 PM UTC+5:30, Laxmanan M wrote:
>>>
>>> hi All,
>>>
>>> Please see the attached file as requested. What the outcomes I’m after 
>>> are requested below.
>>>
>>>  
>>>
>>> When column AJ (Name of successful candidate) is populated & AK(source 
>>> of hire is) is either populated with either External or Agency then I’d 
>>> like an e-mail to be sent (unsure of the e-mail address to date, I’ll add 
>>> the e-mail address in later)
>>>
>>>  
>>>
>>> The subject will contain New Start, the name of the candidate for 
>>> example Joe Bloggs & their  Start Date (column AN)
>>>
>>>  
>>>
>>> The body of the e-mail doesn’t need to contain anything, if it can 
>>> contain any of the above then great, if not don’t worry as the subject 
>>> field will be enough.
>>>
>>>  
>>>
>>>
>>> Thanks,
>>>
>>> laxman
>>>
>>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to