Place Excel Data in desired location on Outlook body. Place your excel data in between your text on the outlook body. Place your excel data before the outlook signature.
link for send emails from template
Check out my online courses www.easyexcelanswers.com/courses.html
All my courses include online support and a user manual
Let me teach you the VBA that I have learn in my five years of consulting
Let’s take the frustration out of user forms
Become an Affiliate and earn 25% on Course Sales
For more help visit my website www.easyexcelanswers.com or email me at easyexcelanswers@gmail.com.
Contact me regarding customizing this template for your needs.
Click for online Excel Consulting
I am able to provide online help on your computer at a reasonable rate.
I use a Blue condenser Microphone to record my videos, here is the link
Check out Crowdcast for creating your webinars
If you need to buy Office 2019 follow
I use Tube Buddy to help promote my videos
Check them out
Follow me on Facebook
TWEET THIS VIDEO
Follow me on twitter
easyexcelanswers
IG @barbhendersonconsulting
You can help and generate a translation to you own language
*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.
code
Sub Send_email_fromtemplate()
Dim edress As String
Dim subj, name As String
Dim filename As String
Dim outlookapp As Object
Dim outlookmailitem As Object
Dim path As String
Dim r, lastrow As Long
Dim olInsp As Object
Dim wdDoc As Object
Dim oRng As Object
Dim customername As String
lastrow = Sheet2.Cells(Rows.Count, 2).End(xlUp).Row
r = 2
Do While Sheet1.Cells(r, 1) (does not equal to ) “”
Set outlookapp = CreateObject(“Outlook.Application”)
‘call your template
Set outlookmailitem = outlookapp.CreateItemFromTemplate(“C:UsersscreaOneDriveDesktopinvoicescorrectloc.oft”)
outlookmailitem.Display
path = “C:UsersscreaOneDriveDesktopinvoices”
edress = Sheet1.Cells(r, 1)
customername = Sheet1.Cells(r, 2).Value
subj = Sheet1.Cells(r, 3)
With outlookmailitem
.To = edress
.cc = “”
.bcc = “”
.Subject = subj
Set olInsp = .GetInspector
Set wdDoc = olInsp.WordEditor
Set oRng = wdDoc.Range
With oRng.Find
Do While .Execute(FindText:=”{{Placeholder for Name}}”)
oRng.Text = customername
Exit Do
Loop
End With
Set xInspect = outlookmailitem.GetInspector
Set pageEditor = xInspect.WordEditor
Sheet2.Select
Sheet2.Range(Cells(1, 1), Cells(lastrow, 8)).Copy
pageEditor.Application.Selection.Start = 160
pageEditor.Application.Selection.End = pageEditor.Application.Selection.Start
pageEditor.Application.Selection.PasteAndFormat (wdFormatPlainText)
.Display
‘.Send
Application.CutCopyMode = False
Set pageEditor = Nothing
Set xInspect = Nothing
.Display
‘.send
End With
‘clear your email address
edress = “”
r = r + 1
Loop
‘clear your fields
Set outlookapp = Nothing
Set outlookmailitem = Nothing
Set wdDoc = Nothing
Set oRng = Nothing
End Sub
Watch more new videos about Excel Office | Synthesized by Mindovermetal English