Dear Priyanka,

Try it and see attached sheet, hope it will help to you.

Sub send_Email()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim mailbody As String
For j = 2 To Sheet1.Cells(Rows.Count, "A").End(xlUp).Row
mailbody = "<TABLE Border=""1"", Cellspacing=""0""><TR>" & _
"<TD Bgcolor=""#2B1B17"", Align=""Center""><Font Color=#FCDFFF><b><p
style=""font-size:18px"">Name&nbsp;</p></Font></TD>" & _
"<TD Bgcolor=""#2B1B17"", Align=""Center""><Font Color=#FCDFFF><b><p
style=""font-size:18px"">Amount&nbsp;</p></Font></TD>" & _
"<TD Bgcolor=""#2B1B17"", Align=""Center""><Font Color=#FCDFFF><b><p
style=""font-size:18px"">Count&nbsp;</p></Font></TD>" & _
"</TR>"
               mailbody = mailbody & "<TR>" & _
               "<TD ><center>" & Sheets(1).Cells(j, 1).Value & "</TD>" & _
               "<TD><center>" & Sheets(1).Cells(j, 2).Value & "</TD>" & _
               "<TD><center>" & Sheets(1).Cells(j, 3).Value & "</TD>" & _
               "</TR>"
        Set olApp = New Outlook.Application
        Set olMail = olApp.CreateItem(olMailItem)
        With olMail
        .To = Sheet1.Cells(j, "D").Value
        .CC = ""
        .Subject = "Data for the month Jan-12"
        .HTMLBody = "Dear Sir/Madam<br><br>" & "Please find the ----- below
----- <br><br> " & mailbody & "</Table><br> <br>Regards <br> <br> Noorain
Ansari"
        .Display
        .Send
End With
Next j
End Sub


-- 
Thanks & regards,
Noorain Ansari
 *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
*http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/>

On Tue, Jan 10, 2012 at 6:14 PM, PrIyAnKa <p.dhamsa...@gmail.com> wrote:

> Dear Team
>
> I need a macro which send mail from excel to the mentioned id in Excel
> with data
>
> E.g. : from A to D data in excel is like as below :
>
> Name |Amount| Count | Email ID
>
> i have data for 100 to 200 persons and email id of each is mentioned in
> front of their name
>
> I want to send mail the data to concern person (of his only) to the email
> id mentioned in the sheet
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>

-- 
FORUM RULES (986+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Attachment: Example(Email).xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12

Reply via email to