+ Reply to Thread
Results 1 to 3 of 3

Emailing Sheet via Outlook by VBA - Body is Missing from 1st email only

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Emailing Sheet via Outlook by VBA - Body is Missing from 1st email only

    Hi,

    I'm using the fantastic code written by Ron de Bruin, and taken/amended from his website at http://www.rondebruin.nl/win/winmail/Outlook/tips.htm to send excel worksheets out through outlook

    In all cases when using the code the email generates and can be sent with the attachments sucessfully through outlook, however it's only with the second email that the message has anything in the body, for the first it's completely blank.

    Usually I employ this in sending many email out to individuals, so I've learned to live with the issue and send the first manually which is still a huge timesaver. However now I need to send single emails only (and of course each now has the body missing for each and every one).

    Any help in spotting why only the first email body would be blank would be much appreciated.

    Cheers

    David




    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: Emailing Sheet via Outlook by VBA - Body is Missing from 1st email only

    Hi,

    These two lines are in the wrong order:
    Please Login or Register  to view this content.
    If you Put the .HTMLBody line after the other one, then the first email will have a body.

    Thanks,
    Duncan

  3. #3
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Emailing Sheet via Outlook by VBA - Body is Missing from 1st email only

    That works very well Duncandhu, many thanks.

    David

+ 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] Using Exell VBA to launch Outlook Email while separating lines in the body of Outlook.
    By Tazyote in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-27-2013, 01:18 PM
  2. export outlook 2007 email into excel with subject and body of email
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2013, 02:37 PM
  3. Emailing PDF, another attachment, and with range in email body
    By supcussy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2012, 10:03 PM
  4. Replies: 2
    Last Post: 08-01-2012, 02:47 PM
  5. Outlook email url in body
    By kevinho in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2005, 07:48 AM

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