+ Reply to Thread
Results 1 to 7 of 7

Need help copying a picture/image from excel to the body of an outlook email

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Queens, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need help copying a picture/image from excel to the body of an outlook email

    Hello All,

    This is my first post ever. Prior to now, I have been able to find solutions using other people's posts. This site has been a huge help in getting over various hurddles. Thank you all.

    Anyway, here is my current problem. I have a report that I send out weekly. I have a macro that imports the data, runs some calculations and produces a nicely formatted report. I recently added a macro to send this report via email with the help of code I found on this forum. My boss asked me to add an image to the report (our departments branding). The problem is that the picture/image doesn't paste over into the body of the email. The values and formats within the range ("A1:L8") copy over, but the picture/image within that range does not.

    From what I can tell, by the time "rng.Copy" is called in the RangetoHTML function the picture/image is gone.

    Thank you in advance for any assistance.

    Here's the code:

    Please Login or Register  to view this content.
    Last edited by kadames27; 01-14-2014 at 05:48 PM.

  2. #2
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Need help copying a picture/image from excel to the boby of an outlook email

    Hello and welcome to the forum... please read the forum rules.. all code needs to have code tags.. (ex. [ CODE ] your code here..[ /CODE ]

  3. #3
    Registered User
    Join Date
    01-14-2014
    Location
    Queens, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need help copying a picture/image from excel to the boby of an outlook email

    Thank you moonsaga. I made the change and will definitely do that going forward.

  4. #4
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Need help copying a picture/image from excel to the body of an outlook email

    Found this .. see if it will help.. http://stackoverflow.com/questions/1...ail-from-excel

  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    Queens, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need help copying a picture/image from excel to the body of an outlook email

    Unfortunately not. I found that post too. When I try this script, I get an error that states "Run-time error '-2147024809 (80070057) This member can only be accessed for a Chart Object." I am guessing this doesn't work because I am techniacally not copying a chart, but rather a picture/image.

  6. #6
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Need help copying a picture/image from excel to the body of an outlook email

    maybe this??
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-14-2014
    Location
    Queens, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need help copying a picture/image from excel to the body of an outlook email

    the script is breaking before I get to that statement. The script is breaking when i try to export the picture as a ChartObject. "Sheets("EMail").ChartObjects("Picture 1").Chart.Export TempFile". I am guessing this doesn't work because I am techniacally not copying a chart, but rather a picture/image. The link has code for exporting a chart.

+ 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 and paste Excel range as picture into Outlook email body using excel vba
    By ExcelDoc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2016, 09:29 PM
  2. Embed a picture as a signature in an Outlook email generated by VBA in Excel
    By zach.sauls in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2013, 11:10 AM
  3. Excel range in picture to outlook email using VBA??
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2013, 01:32 AM
  4. [SOLVED] sending Email (via outlook) from Excel with cell range and image from external file
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2012, 11:10 AM
  5. Copying Excel worksheet in Outlook email body
    By xatomicx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2010, 01:38 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