Bold text in code

gselliott

Registered User.
Local time
Today, 08:59
Joined
May 17, 2002
Messages
106
I am sending emails through Access using the sendobject method, the text is put straight into the body of the email using code.

What i am now wanting to do is to have certian words be displayed in the message as bold text and possibly a different colour. Is this possible or not?

Any ideas would be appreciated!
 
Hello

I don't know if this is familiar this is how i send e-mail any way.


Public Function Mailer()
Dim olkapps As Outlook.Application
Dim olknamespaces As Outlook.NameSpace
Dim objmailitems As Outlook.MailItem
SetWarnings = False
Set olkapps = New Outlook.Application
Set olknamespaces = GetNamespace("MAPI")
Set objmailitems = olkapps.CreateItem(olMailItem)

With objmailitems
.To = "MY FRIEND JIM"
.Subject = "SERVICE MESSAGE FROM OURLOG: UN-OUTCOMED REQUESTS REPORT"


YOU CAN USE HTML TAGS TO CREATE STUFF IN THE BODY OF THE E-MAIL

.HTMLBody = "<B> SERVICE MESSAGE FROM OURLOG: UN-
OUTCOMED REQUESTS REPORT </B>"
.Importance = olImportanceHigh
.Send
End With

Set objmailitems = Nothing
Set olknamespaces = Nothing
Set olkapps = Nothing
SetWarnings = True
End Function



Chris
 
That works fine for email, but can you use bold text in a task item through the code.

Thanks.
 

Users who are viewing this thread

Back
Top Bottom