View Single Post
  #1  
Old May 7th 07, 02:01 PM posted to microsoft.public.outlook.program_vba
rach
external usenet poster
 
Posts: 3
Default design new mail from code in access

hi,
i have this code:
Dim objOutlook As Outlook.Application
Dim objMail As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim db As Database
Dim msg As String

Set db = CurrentDb()
Set objOutlook = New Outlook.Application
Set objMail = objOutlook.CreateItem(olMailItem)
msg = "hello," & vbcrlf & "good morning""
With objMail
Set objOutlookRecip = .Recipients.Add(Email)
.Display
.Subject = "hello"
.Body = msg
end with


i want to align it (the body) to right to set the font, add a picture etc' ,
how can i design this mail?

Ads