+ Reply to Thread
Results 1 to 7 of 7

Copy Range to Body of Outlook Message and Display

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    92

    Copy Range to Body of Outlook Message and Display

    How can i copy the range AG1 to the last available row and copy it to the body of an outlook message??

    Thanks and see attached.
    Brandon
    Attached Files Attached Files

  2. #2
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Copy Range to Body of Outlook Message and Display

    Pasting Cells themselves into an Outlook message is actually a lot more involved than you'd think. You can check out this link as a reference to get you started, but alternatively, if you didn't need the formatting you could probably just paste the values into the body fairly simply.

    http://www.office-loesung.de/ftopic380280_0_0_asc.php

    Here is the relevant code, again, taken from user Nepumuk over at office-loesung.de:

    Please Login or Register  to view this content.
    Want to show appreciation for the help you received from a member? Give them reps by clicking the bottom left of their post!

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Range to Body of Outlook Message and Display

    There has to be a less complex way than this... no?

  4. #4
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Copy Range to Body of Outlook Message and Display

    Not that I've seen. The issue is copying a range has to include HTML markup as the standard VBA method only uses text strings. Including anything other than text requires converting whatever you want to paste into HTML first, before including it in the body. Like I said, if you just want the values, then that's easier. It's the formatting that makes it tricky.

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Range to Body of Outlook Message and Display

    What about just to copy the values instead of to HTML? I.e. copying a range with values?

  6. #6
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Copy Range to Body of Outlook Message and Display

    Something like this should get you close (untested):

    Please Login or Register  to view this content.

  7. #7
    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: Copy Range to Body of Outlook Message and Display

    Here is shorter version of sending a Range as HTML in the body of an email.

    Send Range in Body of an Email
    Please Login or Register  to view this content.
    Example of Using the Macro
    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. Copy specific cells as text into body of a new OUTLOOK message
    By guido0136 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-03-2014, 09:12 AM
  2. Help with Copy Range from Tab and Paste In Outlook Email Message Body.
    By N4VBA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2014, 03:40 PM
  3. Is there a way to Copy And Paste Excel Range As Picture Into Outlook Email Body Using Exc
    By dineshsachidananda in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2014, 09:00 AM
  4. Find the range of a table & copy/past into body of an Outlook email
    By JamesGilchrist in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2014, 08:44 PM
  5. Replies: 7
    Last Post: 08-11-2012, 02:39 PM
  6. Extracting mail message(outlook) table in the message body
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:14 PM
  7. Copy a range to the body in email message
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2008, 02:52 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