+ Reply to Thread
Results 1 to 3 of 3

Copy and paste text and a chart into Html Email body

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Copy and paste text and a chart into Html Email body

    So I have (some sort of standard) code to generate a Html emailbody.
    Problem is I have data and on this data there is a chart.
    Now when I copy and paste the range of these 2 sections it only gives me the data but not the chart (leaves that space blank).

    Can someone explain how I can adjust this code so it also will paste the chart?
    Thanks!

    This is the code :
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Copy and paste text and a chart into Html Email body

    Copy the picture as an image and save it locally, semi-unique file name, add the date on or something, c:\temp\tempchart06082014 and then add it in HTML <img src='c:\temp\tempchart06082014.jpg" /> then delete the file.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Copy and paste text and a chart into Html Email body

    Hmm thanks nathansav, but that is really something I rather not do.
    Was expecting there must be a way that excel can recognize that the copied range contains a chart and then includes it in the copy.

+ 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] VBA to Paste Excel Chart into Email Body
    By excelhelporfavor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2020, 08:05 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. macro to copy used range and paste in the body tag of a html file/text file
    By amethystfeb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 08:34 PM
  4. [SOLVED] Vba code copy range and paste special in email body
    By Webman1012 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2013, 12:48 PM
  5. Encode Text Of Body Of Email Into HTML
    By WJO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2012, 02:27 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