View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Norie Norie is offline
external usenet poster
 
Posts: 1
Default Formatting e-mails after creation


Chris

It isn't difficult to use HTMLBody.

Code:
--------------------

Dim myOlapp As New Outlook.Application
Dim myOLItem As Outlook.MailItem
Dim myVar As Integer

Set myOLItem = myOlapp.CreateItem(olMailItem)
myVar = 12
With myOLItem
.Subject = "Some Subject"
.HTMLBody = "<pYour score was <b" & myVar & "</b</p"
.HTMLBody = .HTMLBody & "<pNext line</p"
.To = "
.Display
End With
--------------------


--
Norie
------------------------------------------------------------------------
Norie's Profile: http://www.excelforum.com/member.php...o&userid=19362
View this thread: http://www.excelforum.com/showthread...hreadid=378405