+ Reply to Thread
Results 1 to 2 of 2

change text and font size in email

  1. #1
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    change text and font size in email

    Hi All,

    I would like to edit this vba to a specific text and size in the html body. Text will be calibri and size will be 11. Can i get advice on where i can add in the code to enable this.


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: change text and font size in email

    Hello Michael35,

    This is the basic idea. Rendering by the browser uses different sizing methods than the Excel worksheet so there is not a one to one correspondence. The browser will generally uses pixels but these are not the same as the pixels used by Excel. It is complicated and I am not going to attempt to explain it in this post. All text within the DIV element will be Calibri, if the computer receiving the email has it. The size is set to 100% of normal. If you need it to be bigger change the 100% to something larger. Be sure to check it before you send it out.

    Your HTMLBody code is missing the opening tag for TABLE. You should make the change before you run this. Since I don't know where you have added the HTML and BODY tags in the HTMLBody code, I cannot guarantee the snippet will work because it is outside of where it is normally located.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] Change font size in email using VBA
    By Maleficent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2019, 11:49 AM
  2. Change Font size based on text value of other cell
    By food4feet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2018, 11:57 AM
  3. How to change font size URLs and email addresses
    By SKMaverick in forum Excel General
    Replies: 3
    Last Post: 12-28-2017, 07:56 PM
  4. [SOLVED] Change font, size, color for part of email body
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2015, 12:48 AM
  5. Change font size of text in mail VBA code
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2013, 12:51 PM
  6. change RightHeader text Font Size
    By mahesh_1981 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2013, 07:08 AM
  7. [SOLVED] Change Font Size/Color on one line of an email automatically generated by a code.
    By coxb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 01:55 PM

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