+ Reply to Thread
Results 1 to 3 of 3

copy excel cells into body of email as a picture.

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2010
    Posts
    1

    copy excel cells into body of email as a picture.

    The problem goes thus :
    . i have an excel workbook which contains some values. I need to copy these into an outlook email object as a 'picture'. i cant paste this as a table or as text values.

    Can someone help me with this.

    The code i have till now gives me a blank email. Unable to get anything in the email body.

    Dim Sh As Shape
    Dim oOutlook As Outlook.Application
    Dim oEmailItem As MailItem
    DP_template_path = "\\wn7x64-75kc32s\emea_revgen\Faraaz\Daily Pulse\Daily EMEA_Pulse_Report_Template_Q3FY13.xlsx"

    Workbooks.Open Filename:=DP_template_path
    Workbooks("Daily EMEA_Pulse_Report_Template_Q3FY13.xlsx").Worksheets("EMEA WTD & Overall").Select
    Set Sh = Worksheets("EMEA WTD & Overall").Shapes(1)
    Sh.CopyPicture Appearance:=xlScreen, Format:=xlPicture


    On Error Resume Next
    Set oOutlook = GetObject(, "Outlook.Application")
    If oOutlook Is Nothing Then Set oOutlook = CreateObject("Outlook.Application")

    Set oEmailItem = oOutlook.CreateItem(olMailItem)

    With oEmailItem
    .Subject = "Daily Pulse Template"
    .To = "[email protected]"
    .Body = Selection.Paste
    .Display
    End With



    Regards,
    Faraaz

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: copy excel cells into body of email as a picture.

    this macro saves range as image
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: copy excel cells into body of email as a picture.

    Try my code here - http://www.excelforum.com/showthread...=1#post2756201. It embeds cells as an image in the body of an Outlook email.
    Post responsibly. Search for excelforum.com

+ 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