Results 1 to 3 of 3

Excel VBA Bulk Email with date and time email sent

Threaded View

  1. #1
    Registered User
    Join Date
    10-31-2019
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    19

    Excel VBA Bulk Email with date and time email sent

    Hi guys,

    I am working an Excel file to send bulk emails to clients from a list.

    I made this VBA for only the first row of the list but I don't know how to make it send emails to the whole list. Values that change are K2, A2 and B2.

    I also would like to add the column to indicates that the email was sent with the date and time.

    Your help is really appreciated!

    Thank you so much
    Claudia

    Sub ESES()
    
    Dim emailApplication As Object
    Dim emailItem As Object
    
    Set emailApplication = CreateObject("Outlook.Application")
    Set emailItem = emailApplication.CreateItemFromTemplate(Range("K2").Text)
    
    emailItem.SendUsingAccount = "myemail@email.com"
    
    emailItem.to = Range("B2").Value
    emailItem.Subject = "Business Appointment"
    
    Dim sBody As String
    
    sBody = emailItem.HTMLbody
    sBody = Replace(sBody, "#$ClientNumber#", Range("A2").Text)
    emailItem.HTMLbody = sBody
    
    emailItem.Display
    
    Set emailItem = Nothing
    Set emailApplication = Nothing
    
    End Sub
    Last edited by ClaudiaRovastino; 05-18-2020 at 08:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to send bulk email from excel
    By Sona85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2019, 12:12 AM
  2. [SOLVED] how to check bulk email address is correct or not in excel file
    By johnquazi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2018, 12:17 AM
  3. [SOLVED] Need to send bulk Email from excel file
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2018, 07:36 AM
  4. VB Code to email bulk of files
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2015, 07:11 AM
  5. Bulk Email Addresses to Excel
    By daw007 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-22-2013, 12:27 AM
  6. Adding commas "," in email addresses for sending BULK Email stored cellwise..!
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2011, 09:50 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