+ Reply to Thread
Results 1 to 6 of 6

Draft email create from vba, body to contain worksheet

  1. #1
    Registered User
    Join Date
    01-03-2020
    Location
    Staffordshire, England
    MS-Off Ver
    excel for office 365 mso (16.0.12624.20348) 32-bit
    Posts
    35

    Draft email create from vba, body to contain worksheet

    Hi, I'm designing a quote system whereby data is entered into a worksheet (QuoteGenerator), when the create quote button is selected a separate worksheet (QuoteTemplate) is populated and a pdf file created. All works well. What I'd like to do is to create a draft email that has the body containing the QuoteTemplate worksheet including company image, and to also attach the pdf. I've managed to get a draft email created but can't get the worksheet content included. Attached is the QuoteTemplate worksheet, some values are undefined but that's because I've removed some of the source info. It's the entire sheet contents I'd like including in the body of the email. Any help appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Draft email create from vba, body to contain worksheet

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Draft email create from vba, body to contain worksheet

    See post2 here...Will give you an idea...
    If you can't figure it out, please explain in exact detail what you want to do...
    Also...As per above post...Pls update Excel version...i.e. 2007|2010|2013|2016|2019|365 etc
    Last edited by sintek; 04-14-2020 at 09:30 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    01-03-2020
    Location
    Staffordshire, England
    MS-Off Ver
    excel for office 365 mso (16.0.12624.20348) 32-bit
    Posts
    35

    Re: Draft email create from vba, body to contain worksheet

    Apologies, excel for office 365 mso (16.0.12624.20348) 32-bit

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Draft email create from vba, body to contain worksheet

    Thanks for info...Pepe requests that you update your profile so that it show on all your future posts...

    MS-Off Ver Excel, Word,

  6. #6
    Registered User
    Join Date
    01-03-2020
    Location
    Staffordshire, England
    MS-Off Ver
    excel for office 365 mso (16.0.12624.20348) 32-bit
    Posts
    35

    Re: Draft email create from vba, body to contain worksheet

    This forum never fails to impress. It works perfectly in outlook. Just one observation: I've been using a yahoo account for donkey's years which I run in Chrome or on my phone using the yahoo app. The body contents don't display properly in the yahoo apps. As part of my process I create a pdf of the quote and am going to attach it to every email so am of a mind to add a note at the top of each mail to advise to open up the pdf if the contents don't display properly. If anyone has any suggestions to get round this please advise. I've also just tried accessing from an iphone and there's a big gap at the top which makes it look like there's no content, scroll down and the details are there. There's an attachment showing but no pdf I can click on whereas in a different email with a pdf it's a clickable file. If anyone's come across this all help appreciated. Just using outlook is well impressive so thanks all.

+ 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] A macro to copy a worksheet to a new workbook and create an email draft with the new ws
    By skylinekiller in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2018, 07:25 PM
  2. [SOLVED] Format email body when using VBA to create new email
    By mb1824 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2018, 11:36 AM
  3. [SOLVED] VB Code to create Body Message for EMail
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2017, 12:31 PM
  4. [SOLVED] Vba to draft html body in outlook
    By arun.sj in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-15-2015, 07:37 AM
  5. Copy data from excel to Outlook new email and create draft.
    By G.Bregvadze in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2013, 03:31 AM
  6. [SOLVED] Create macro to send worksheet as body of email using cells as subject line
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2012, 07:43 PM
  7. Create Lotus Notes Draft email from filtered or unfiltered List
    By Jimmy0306 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-07-2009, 09:03 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