trprasad78
Member
Hi
I am not good in VBA,
i would like to send email with following information.
From Account : [I need option to choose from which account it has to go ]
.TO
.CC
.Subject
.body
above details given attached file.
I have attached sample file
Sheet1:due record
Sheet2:Customer Info
Sheet3:Out file
Question 1: As per below code only 3 email will send, But it has to send email till record is end.
Question 2 : In out put file i have pasted table as image , how to copy one customer record and past in to his email content. (Table from Sheet1:due record)
Please help me get done.
Thanks
prasad.
also i try with few vba code follows
I am not good in VBA,
i would like to send email with following information.
From Account : [I need option to choose from which account it has to go ]
.TO
.CC
.Subject
.body
above details given attached file.
I have attached sample file
Sheet1:due record
Sheet2:Customer Info
Sheet3:Out file
Question 1: As per below code only 3 email will send, But it has to send email till record is end.
Question 2 : In out put file i have pasted table as image , how to copy one customer record and past in to his email content. (Table from Sheet1:due record)
Please help me get done.
Thanks
prasad.
also i try with few vba code follows
Code:
Sub sendeMail()
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
For i = 2 To 4
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.To = Cells(i, 2).Value
.CC = Cells(i, 3).Value
.Body = Cells(i, 4).Value
.Subject = Cells(i, 5).Value
.Display
''.Attachments.Add "C:/abc.txt"
''.Send
End With
Set olMail = Nothing
Set olApp = Nothing
Next
End Sub