Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I want to send email messages from Microsoft Outlook(2010). For this I have a VBA project, in which I'm creating an Outlook Mail object as:

'Initialize Outlook Application Object
Set outlookApp = New Outlook.Application
'Initialize Outlook CreateItem object for creating rule
Set outlookMail = outlookApp.CreateItem(olMailItem)

'Compose mail based on the inputs provided in the text boxes.
With outlookMail
.To = 'xyz@xyz.com'
.Subject = mailSubjectRule
.Body = Sheets("Input").txtboxMailBody.Text


Please somebody tell me if I can change the Page Color of Outlook message using the above code, i.e. setting any property of outlookMailobject.

I need to set the background of outlook message.

Thanks
Nishant
Posted

1 solution

I'm pretty certain that the only way to do this is to format the message as HTML or RTF and embed your message in appropriate tags. HTML is probably the most reliable of the two.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900