![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am currently working on an Outlook automation module in an Access 97 database. All is working well except now the client wants the generic body to contain certain sections in red text and others in blue text. Can this be done? If so how? I understand that I may have to send this email in HTML format which is not a problem. Any help would be much appreciated. Mark |
#3
| |||
| |||
|
|
"Giganews" <hereinde (AT) yahoo (DOT) com> wrote in message news qCdnSXym5lzzO_fRVn-pw (AT) comcast (DOT) com...I am currently working on an Outlook automation module in an Access 97 database. All is working well except now the client wants the generic body to contain certain sections in red text and others in blue text. Can this be done? If so how? I understand that I may have to send this email in HTML format which is not a problem. Any help would be much appreciated. Mark Try this ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sub Send_HTML_email() Dim olApp As Outlook.Application Dim olNs As NameSpace Dim Fldr As MAPIFolder Dim olMail As Variant Dim myItem As Object Dim msg As Object Set olApp = New Outlook.Application Set olNs = olApp.GetNamespace("MAPI") Set myItem = olApp.CreateItem(olMailItem) Q = Chr(34) Br = ">" Email_Body = "Build your HTML code here" myItem.Display myItem.To = "your recepient" myItem.Subject = Date & " " & Time '"HTML test" myItem.HTMLBody = Email_Body myItem.Send End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AvP |
![]() |
| Thread Tools | |
| Display Modes | |
| |