+ Reply to Thread
Results 1 to 2 of 2

format userform output to email

Hybrid View

EagleInsight format userform output to... 01-22-2014, 09:02 PM
event21 Re: format userform output to... 01-22-2014, 09:28 PM
  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    15

    format userform output to email

    I have a macro that creates an email based on the values inputted by users in both listboxes and textboxes on a userform. However I want to make the values a certain format, e.g. some text red and other text bold.

    what code would i add to enable this?

    e.g.
    With MyItem
    .To = "xxx@xxx.com
    .Subject = ListBox7.Value
    .Body = ListBox1.Value & vbNewLine & _ <----- want to make this listbox value red
    TextBox1.Value & vbNewLine & _ <--- want to make this textbox value bold
    "Enjoy your day " <--- want to make this plain text value bold
    .display

    Gracias!

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: format userform output to email

    Hi -

    Everytime you posted a codes, please have it enclosed in tags
    .HTMLBody = "<html><font color=red>" & ListBox1.Value & "</font><br>" & _
    "<b>" & TextBox1.Value & "</b><br>" & _
    "<b>Enjoy your day </b></html>"
    .display
    event

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Email output variable
    By jlang11 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-29-2013, 10:09 AM
  2. Replies: 4
    Last Post: 02-27-2012, 03:13 AM
  3. Wrong Date Format in output userform
    By ABBOV in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2010, 06:58 AM
  4. Compare two email lists and output non-matching
    By Axle_Max in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2009, 06:18 AM
  5. userform output to procedure
    By shellshock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2005, 06:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1