+ Reply to Thread
Results 1 to 2 of 2

Sending a template email with dynamic content from excel

  1. #1
    Registered User
    Join Date
    05-06-2022
    Location
    UK
    MS-Off Ver
    360
    Posts
    1

    Sending a template email with dynamic content from excel

    Hello all,

    I am struggling to get the VBA to do what I want and I am running out of ideas, I would really appreciate it if someone could help me.

    I have inserted a command button into an excel document that once pressed, opens an email in outlook and adds all of the key data to the subject line and the body of the text.
    At the moment I am only able to add the standard text to the email but what I want to do is add some figures/dates/etc. at certain points in the text (I have emboldened these as an example below).
    These will be fed from cells on another page in the same documents.



    olMail.Body = "Good Morning" & vbNewLine & vbNewLine & _
    "Thank you for your purchase order to the total value of AUTOADDVALUE which we received on AUTOINPUTDATE, in which you refer to a delivery date of AUTOINPUTDATE." & vbNewLine & _



    Thank you for any help that you can give.
    Kind Regards,
    Neil

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Sending a template email with dynamic content from excel

    Similar recent thread that you can work with.

    https://www.excelforum.com/excel-pro...for-email.html

+ 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 a template as an email in VBA
    By Seifptv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2019, 06:37 AM
  2. Change sent from when sending email from template
    By Poppiefresh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2018, 11:29 AM
  3. Antivirus update eror while sending autoemails from email macro template
    By Chandrahaas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2017, 01:19 PM
  4. Copying content of one excel to another excel and sending email with excel data
    By archies.gall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 02:22 PM
  5. dynamic range for sending email
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-27-2012, 08:37 AM
  6. Sending email via outllok template thorugh excel VBA
    By sqledge in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 11-22-2010, 05:32 PM
  7. Sending email based on cell content
    By Hoosteen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2007, 02:08 PM

Tags for this Thread

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