View Single Post
  #2  
Old February 20th 06, 07:13 AM posted to microsoft.public.outlook.program_forms,microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How to set background image for ActiveInspector.CurrentItem?

Am Wed, 15 Feb 2006 15:51:44 -0800 schrieb Burma Jones:

In general this works:

Public Sub SetBackgroundImage()
Dim oMail As Outlook.MailItem
Dim sText As String

Set oMail = Application.CreateItem(olMailItem)
sText = "body style='background-image:url(picture.jpg)'"
sText = sText & "hallo"
oMail.HTMLBody = sText
oMail.Display
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Assuming an HTML-formatted message, how does one set the background image

programmatically? Just like when you go Format - Background - Picture,
and then browsing to the image. Don't want to use Sendkeys if at all
possible. Thanks!
Ads