Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change format of text in email generated by VBA

Status
Not open for further replies.

Kunal

Programmer
May 25, 2001
20
CA
I have a code behind a button which on click creates a email and adds set text to the body of the email. Below is a cut down version of this.

Now I'm looking to find a way to be able to change the format of the text i.e changing to bold, colour red, font Arial and underline.

Now unfortunately I don't know how to do this, I've tried vbColor etc but no joy. I would be extremly greatful for any help.


Dim emailtxt As String
emailtxt = emailtxt & "How do I make this test bold, red and font arial?" & Chr(13) & Chr(13)
DoCmd.SendObject , "", "", "mailkunal@aol.com", "", "", "TEST EMAIL", emailtxt, True, """"""

Many thanks,

Kunal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top