Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-18-2016, 07:32 AM
gmayor's Avatar
gmayor gmayor is offline .RTFBody property for a mail item is returning error Windows 10 .RTFBody property for a mail item is returning error Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
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

Outlook may be open but your code creates another Outlook application
Code:
Set OutApp = CreateObject("Outlook.Application")
If you want to take advantage of the open Outlook you must use the Outlook application that is open. Your code doesn't do that. The code I posted will ensure only one version of Outlook is used and it will open or access it so that it can be used to create the message. The line I isolated above does not do that.

You can't use an existing watermark in your message body as watermarks are set in the header footer story range and e-mails do not support header/footers.

Create you message as a Word document. The macro will copy the complete body of the active document, including any graphics anchored to the body story range to the message. If your graphics are anchored to the header/footer range, bring them out to the document body and then the macro can copy them.
__________________
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
.RTFBody property for a mail item is returning error Copying data related to one item to worksheet with many instances of the same item nmp13 Excel 3 02-06-2016 02:13 AM
.RTFBody property for a mail item is returning error COUNTIFS returning Value Error ubns Excel 1 04-16-2015 02:00 PM
Returning a specific value when item is selected from a drop-down list J Press Excel 4 09-10-2012 06:12 AM
oulook 2003 error - this item cannot be displayed in the regading pane. GoneFusion Outlook 1 09-22-2010 09:45 AM
.RTFBody property for a mail item is returning error MYOB and "Item.Send error" Outlook message peter_lambros Outlook 1 12-06-2008 08:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:10 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