Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2019, 11:07 PM
gmayor's Avatar
gmayor gmayor is offline Pass Mailmerge body to Outlook Application Windows 10 Pass Mailmerge body to Outlook Application Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

In order to write to the html body, you need to use the Outlook Word Editor Inspector and then you can treat the body as if it was a Word document e.g.




Code:
With olEmail
        .BodyFormat = olFormatHTML
        Set olInsp = .GetInspector
        Set wdDoc = olInsp.WordEditor
        Set oRng = wdDoc.Range
        oRng.Collapse 1
This entry point at the start or the message body. As long as you know how to manipulate strings you can add whatever you want to that body.


Or you could simply use http://www.gmayor.com/ManyToOne.htm in one to one mode and merge directly to the message body
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
.datasource, html body template, mailmerge



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure outlook for gmail. cannot pass msg lortech Outlook 0 12-15-2015 11:58 PM
add hyperlink in body of Outlook email ChuckDrago Word 0 06-27-2013 01:13 PM
Pass Mailmerge body to Outlook Application Outlook Mailmerge - Application Crash pgrant Word 4 12-05-2011 04:51 AM
Outlook 2007 Application Hang MTomasco Outlook 1 06-06-2011 11:53 PM
Outlook 2007 Application Hang outlook_n00b Outlook 0 03-31-2011 11:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft