Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
outlook htmlbody
From Excel VBA, I am creating an outlook email message. I want to have the
body contain an html file. Is there any way to load this html from a file, instead of having to put into the VBA code? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
outlook htmlbody
Set objOutlook = New Outlook.Application Set objEMailMsg = objOutlook.CreateItem(itemtype:=olMailItem) 'Show mail but don't actually send! If sBody < "" Then With objEMailMsg .Subject = "P&P Summary for " & REPORTDATE .HTMLBody = NameValue(NAV_MESSAGE) & vbCrLf & sBody .Display End With "Erin" wrote: From Excel VBA, I am creating an outlook email message. I want to have the body contain an html file. Is there any way to load this html from a file, instead of having to put into the VBA code? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
outlook htmlbody
I forgot to alter something.
NameValue(NAV_MESSAGE) & vbCrLf & sBody is simple the path to the html file plus some additional text eg .HTMLBody = "C:\Demo.html" & vbCRLF & "Hello World!" "Patrick Molloy" wrote: Set objOutlook = New Outlook.Application Set objEMailMsg = objOutlook.CreateItem(itemtype:=olMailItem) 'Show mail but don't actually send! If sBody < "" Then With objEMailMsg .Subject = "P&P Summary for " & REPORTDATE .HTMLBody = NameValue(NAV_MESSAGE) & vbCrLf & sBody .Display End With "Erin" wrote: From Excel VBA, I am creating an outlook email message. I want to have the body contain an html file. Is there any way to load this html from a file, instead of having to put into the VBA code? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel open in outlook if outlook is running | Excel Discussion (Misc queries) | |||
Outlook 11 Outlook 10 Object Library Compatibility Issues | Excel Programming | |||
Send to Outlook 2000 not Outlook Express | Excel Discussion (Misc queries) | |||
Late Binding to Outlook from Excel: Outlook modifies email body | Excel Programming | |||
Display mail application either in Outlook, or Outlook express | Excel Programming |