+ Reply to Thread
Results 1 to 3 of 3

Send sheet as email ... with pictures

Hybrid View

  1. #1
    Forum Contributor beeawwb's Avatar
    Join Date
    01-04-2004
    Location
    Perth, WA, Australia
    MS-Off Ver
    Microsoft Office Excel 2003 (11.8146.8221) SP2
    Posts
    105

    Send sheet as email ... with pictures

    Hi all,

    Have done a number of searches on how to do this, and keep drawing blanks. Thought I'd come to my favourite Excel gurus to see if something can be worked out.

    I'm designing a form in Excel where my users will fill in the boxes, etc, calculations will be performed and when everything is done, click a button at the bottom of the form and it sends itself as an email. That part's easy, no problems there.

    The problem is, I want to include a picture (logo) so it appears to be a letterhead on the form, just for a bit of extra credibility when emailing the form.

    I can't find any code that will allow me to do this. Closest I came was some code from Ron deBruin, using the MailEnvelope commands, but while the site suggests it should send pictures, they weren't included.

    Has anybody come up with any way to include pictures when sending?

    Thanks in advance,
    Bob

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello beeawwb,

    To include pictures in your email requires using Outlook and converting your email automatically into an HTML format. All of which can be done using late binding from Excel to the Outlook application. Because you are sending an HTML formatted email, the recipient's email program must also be capable of receiving HTML. Other potential problems are that your email may be blocked or quarantined by the spam blocker or anti-virus program of the one receving your email. The basic HTML tag that needs to be included in the body of the email is ...
       <img src=” file location and name”>
    This can be added at the start or end of the email body (easy) or somewhere in the text of the message body (not so easy). I have never written coded for this, but that has never stopped me before. If someone else doesn't provided a solution in a reasonable amount of time, I will work on this for you.

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor beeawwb's Avatar
    Join Date
    01-04-2004
    Location
    Perth, WA, Australia
    MS-Off Ver
    Microsoft Office Excel 2003 (11.8146.8221) SP2
    Posts
    105
    Hi Leith,

    As it happens, I just worked out another way which has seemed to work. I only have the 1 picture, so I deleted it and tried creating it again using Insert->Object->Create from File, and selecting my bmp. That sends fine in the email.

    That said... I've run into another problem, which will probably be the subject of another thread, just to keep the discussion seperate.

+ 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. send email by checkbox selection
    By kendals in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-24-2011, 01:48 PM
  2. Form Email from Report, Only if Report summary sheet lists Acct for that Sales Rep
    By lukep10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2008, 01:38 PM
  3. Resolved >>> Creating new sht from template sht & filling in summary sht - userform
    By lou031205 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-23-2007, 04:10 PM
  4. Email specifid sheet in workbook with macro
    By markdill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2007, 02:24 AM
  5. How do you send a workbook within a sheet
    By Sail in forum Excel General
    Replies: 3
    Last Post: 01-19-2007, 04:02 AM

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