+ Reply to Thread
Results 1 to 11 of 11

sending email with a Picture in the body

  1. #1
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    sending email with a Picture in the body

    Hi all,

    I have a process metric that I need to send via email.
    I would like to automate this.

    I am looking for the following
    1. upon clicking send mail button the smart art used on the excel should be mailed.
    2. the smart art should be pasted as Image on the body of the email.
    3. The body should contain a text message like " dear receiver," <line break> " Please find the below process health for this week" <line break> "Regards," <line break> "Sender"
    4. The size of the image on the email body should be height 3 inches and width should be 5 inches.

    I have attached the spreadsheet for reference.
    Looking for help from you guys.

    Thanks,
    Kiran
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: sending email with a Picture in the body

    Hi All,

    Need you help with the below situation.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: sending email with a Picture in the body

    Hi kiranpat

    See if the Code in the attached works for you...
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: sending email with a Picture in the body

    Quote Originally Posted by jaslake View Post
    Hi kiranpat

    See if the Code in the attached works for you...
    Thanks for your help however, I see an error msg at line pic.Chart.Export "C:\bazooka.bmp"
    I have attached a screen shot of it for your reference.
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: sending email with a Picture in the body

    Hi kiranpat

    I can only guess, have no way of trouble shooting it for you as it works on my platform. My guess is you either can't write to Drive C or you don't have a Drive C. In either event, if one or the other is true, you'll need to change the Reference from Drive C to one to which you can write.

  6. #6
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: sending email with a Picture in the body

    Quote Originally Posted by jaslake View Post
    Hi kiranpat

    I can only guess, have no way of trouble shooting it for you as it works on my platform. My guess is you either can't write to Drive C or you don't have a Drive C. In either event, if one or the other is true, you'll need to change the Reference from Drive C to one to which you can write.
    Hi jaslake,

    May be you are right, just was thinking if we can do it without using the drive.
    like using the cache memory?
    just thinking, any idea it that can be done?

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: sending email with a Picture in the body

    Hi kiranpat

    No clue
    just was thinking if we can do it without using the drive.
    like using the cache memory?

  8. #8
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: sending email with a Picture in the body

    Quote Originally Posted by jaslake View Post
    Hi kiranpat

    No clue
    Thanks for the reply jaslake, I will try the code on a different machine and will let you know if it works

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: sending email with a Picture in the body

    Let me know how I can help...

  10. #10
    Registered User
    Join Date
    05-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: sending email with a Picture in the body

    Quote Originally Posted by jaslake View Post
    Let me know how I can help...
    Thanks a lot Jaslake, I changed the path to D drive an it perfectly works fine now.

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: sending email with a Picture in the body

    You're welcome...glad I could help.

    If this resolves your issue please mark your Thread as SOLVED.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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. Sending filtered range to email as body
    By h_aesa1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2013, 06:50 PM
  2. [SOLVED] Code is sending same chart to all email body .
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2013, 02:35 AM
  3. Problem sending images in email body
    By sharky12345 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2012, 07:25 AM
  4. Sending Worksheet in body of email: RangetoHTML
    By mojo249 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2010, 11:23 AM
  5. [SOLVED] sending worksheet deletes body of email
    By Iqbal S. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2005, 05:00 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