A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to set background image for ActiveInspector.CurrentItem?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 15th 06, 11:51 PM posted to microsoft.public.outlook.program_forms,microsoft.public.outlook.program_vba
Burma Jones
external usenet poster
 
Posts: 11
Default How to set background image for ActiveInspector.CurrentItem?

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!
  #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!
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OE Background Music? ColTom2 Outlook Express 7 March 7th 06 12:02 AM
[HELP] adding background musique Merlin L'Enchanteur Outlook Express 4 March 1st 06 05:04 PM
How to set background image for ActiveInspector.CurrentItem? Burma Jones Outlook - Using Forms 1 February 20th 06 07:13 AM
Signature with Image Problem [email protected] Outlook - General Queries 0 February 9th 06 04:28 PM
background image problem OE6 zMartha Outlook Express 1 February 4th 06 01:18 AM


All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.