+ Reply to Thread
Results 1 to 10 of 10

Automated formatted emails based on a range

  1. #1
    Registered User
    Join Date
    02-05-2021
    Location
    London
    MS-Off Ver
    2019
    Posts
    18

    Automated formatted emails based on a range

    Hello all, FE here again... I wondered if someone with more coding knowledge than me can help solve this conundrum!

    I would like to send a formatted email from outlook; the template for which is on the worksheet 'Email' (I was originally using an outlook template, but was advised against this). The email should contain elements of text referenced from certain cells on page 'Hotel Staffing'. The email should then be created with all addresses under the 'Hotel Staffing!email ad' cells copied into the recipients field, and with a copy of the entire spreadsheet also being attached. I'm sure this should be possible, and I've tried my best (see my blundered module) but just keep getting nothing at all, or errors which I cant rectify... I'm hopeful that one of you amazing VBA gurus will be able to help.

    Grateful as always,
    A humble FlyingElk
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Automated formatted emails based on a range

    Are the email addresses in column C to the right of the cells that contain "email ad"? Do you want the one email to go to all the email addresses?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-05-2021
    Location
    London
    MS-Off Ver
    2019
    Posts
    18

    Re: Automated formatted emails based on a range

    Hi Mumps, thanks for your reply. The email addresses are in row 15, 18, 20, 23, 25, 27 & 29.

    Yep just want one email to be created with all the addresses copied in automatically if that's possible. Thanks

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Automated formatted emails based on a range

    Try this macro. Please note that there is currently no "Subject". You will have to manually enter the email subject between the quotes where indicated. Modify the data (in blue) to match your actual data. Also, the macro is set to display the email. This gives you an opportunity to review it before sending. If you want to send it automatically without reviewing it, change ".Display" to ".Send".
    Please Login or Register  to view this content.
    Last edited by Mumps1; 02-17-2021 at 11:26 AM.

  5. #5
    Registered User
    Join Date
    02-05-2021
    Location
    London
    MS-Off Ver
    2019
    Posts
    18

    Re: Automated formatted emails based on a range

    Thanks so much Mumps1, that is a great start! I have a few questions if you will indulge me?

    1) Is there any way to have the email formatted as per the 'Email' worksheet, as opposed to being in the outlook default HTML style?
    2) When I create the email; it is addressed just to 'email ad'. I realise that when I clarified that before I wasn't entirely clear, but these are effectively headers for the rows. I have populated the spreadsheet with some sample data for clarity, and reupload it here. Is there any way to create the string by inputting the addresses from the populated cells?

    I really appreciate your help Mumps1. Thanks a million!
    Attached Files Attached Files

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Automated formatted emails based on a range

    I believe that there is code that can format the email, but unfortunately I don't have any experience in that area. You may want to do some research on it to see what you can find. The macro below will now insert the correct email addresses:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-05-2021
    Location
    London
    MS-Off Ver
    2019
    Posts
    18

    Re: Automated formatted emails based on a range

    That's amazing Mumps, thanks a million!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Automated formatted emails based on a range

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    02-05-2021
    Location
    London
    MS-Off Ver
    2019
    Posts
    18

    Re: Automated formatted emails based on a range

    All done, thanks Ali

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Automated formatted emails based on a range

    You are very welcome.

+ 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. Not getting automated emails
    By UESCA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2019, 02:21 AM
  2. automated emails with Excel VBA
    By arrowheadt43 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-10-2019, 02:49 PM
  3. Automated Emails
    By lstevenson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2019, 10:59 PM
  4. [SOLVED] Automated emails
    By shina67 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2019, 12:03 PM
  5. Automated capture of Emails to become a Database
    By mhan_spidey in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 07-10-2013, 03:26 AM
  6. Need to have automated emails sent from excell
    By TIGERFAN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 07:15 PM
  7. Want to send Automated Emails
    By joe41 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 03-24-2009, 06:30 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