+ Reply to Thread
Results 1 to 4 of 4

Format body in RangetoHTML

  1. #1
    Registered User
    Join Date
    12-31-2015
    Location
    Barreiro, Portugal
    MS-Off Ver
    MS Office 365
    Posts
    84

    Format body in RangetoHTML

    Hello experts,

    I'm using the Ron de Bruin code to create an e-mail with cells inside the mail body.

    Although it runs, I want to add 2 minor changes and I don't find the place to them in the code:
    1. The cells lack (only) the lower limit, how can I make it appear or add it?
    2. Can Autofit be used? The cells are too long to read the information altogether

    Here's the whole code with the function included:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Format body in RangetoHTML

    I don't know what (1) means.

    I have seen requests for (2) but have never seen a solution. My thoughts would be to Autofit your rows and columns first. That won't get you there but might help some. The other thought was to set the Autofit option for the Page settings. To see code to do that, record a macro to print, set your page options, but don't print. Since it is html, an adjustment to the body might help. e.g. http://stackoverflow.com/questions/1...it-to-a-window

  3. #3
    Registered User
    Join Date
    12-31-2015
    Location
    Barreiro, Portugal
    MS-Off Ver
    MS Office 365
    Posts
    84

    Re: Format body in RangetoHTML

    Thank you for your kind answer. Thanks to it, I was able to search a lot better. Not the code I need yet, but inside the function i've added:
    Please Login or Register  to view this content.
    At least on the first cell it works, so know i feel closer to finding the solution.

    About (1)., my apologies for not using the proper word. I have borders on the cells, and despite the top, left, right and all interior borders appear, the bottom one does not.

    If I copy more than one row to the e-mail, then only on the bottom row is the border missing.

    Once again, thank you for your help.

  4. #4
    Registered User
    Join Date
    12-31-2015
    Location
    Barreiro, Portugal
    MS-Off Ver
    MS Office 365
    Posts
    84

    Re: Format body in RangetoHTML

    For the autofit, this line of code inside the temp WB of the funtcion solved the problem:
    Please Login or Register  to view this content.

+ 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. format email body
    By Matthias0156 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2014, 11:36 AM
  2. Return to orignail view after rangetohtml coding.
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 09:35 AM
  3. RangetoHTML
    By bigpappi23 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-23-2013, 04:10 AM
  4. RangetoHTML issue, Excel 2003
    By bondcrash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2011, 04:51 AM
  5. Setting RANGE for RangeToHTML
    By kmkelley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2011, 11:08 AM
  6. Sending Worksheet in body of email: RangetoHTML
    By mojo249 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2010, 11:23 AM
  7. Format text in e-mail body
    By mabbutt in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 09-28-2009, 04:22 AM

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