i want to change the font type to "Courier New" for my outlook message sent through VB

Dim oOApp As Outlook.Application
Dim oOMail As Outlook.MailItem

Set oOApp = CreateObject("Outlook.Application")
Set oOMail = oOApp.CreateItem(olMailItem)
MsgBox 2
With oOMail
.To = Text1.Text
.CC = Text2.Text & ";" & Text3.Text
.Subject = Text4.Text
.Body = Text5.Text

.Send
End With

How can i do it.

Thanks

you mean to change textbox font type?

You can use the MailItem.BodyFormat to specify whether you want it to be HTML, Rich text or whatever, then (if HTML) wrap some <FONT face = "Courier New"> </FONT> tags around your text before you move it to the "MailItem.Body" variable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.