+ Reply to Thread
Results 1 to 7 of 7

Copy and paste Excel range as picture into Outlook email body using excel vba

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Copy and paste Excel range as picture into Outlook email body using excel vba

    I need to use Excel to send pictures of excel ranges to recipients with basic computers that do not support HTML, have no Office programs, and have only basic e-mail programs that can display images. I can copy the image to the clipboard, but I do not know how to paste it into the email body as a picture. Nor do I know how to paste it into Paint and save it for use as an attachment, which would also be acceptable.

    Can anyone help with this vba??

    Jerry

  2. #2
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    Would this help?

    http://www.rondebruin.nl/win/s1/cdo.htm

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    Unfortunately the reference you posted still sends the image as HTML. The receiver site cannot process HTML.

    Thanks, it was a good shot.

  4. #4
    Registered User
    Join Date
    02-02-2014
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    Hello everybody,

    First you need to create an outlook mail object, then, write the mail body (in html) with the appropriate <img src='myfile.jpg'> tag. Please note following points :
    - embedded images must be save on your computer (as a jpg file or png file) ;
    - Since outlook 2013, embedded images must be attached to the email as well.


    At the link below you will find all details and a working code template

    http://vba-useful.blogspot.fr/2014/0...ed-images.html

  5. #5
    Registered User
    Join Date
    12-21-2011
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    Dear eddy_bzh
    in link you provided
    Error showing at below line - variable not defined

    Set appOutlook = CreateObject("outlook.application")

  6. #6
    Registered User
    Join Date
    12-21-2011
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    Actually i also need the code

    A range (A1:AW20) in email, pasted as picture.

    Any one have solution ???

  7. #7
    Registered User
    Join Date
    12-28-2015
    Location
    United Sates
    MS-Off Ver
    2003
    Posts
    1

    Re: Copy and paste Excel range as picture into Outlook email body using excel vba

    I am also interested in the solution... did you find it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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