+ Reply to Thread
Results 1 to 4 of 4

Mass emailing with a loop from a list

  1. #1
    Registered User
    Join Date
    03-09-2021
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    3

    Mass emailing with a loop from a list

    Hello,

    Cant seem to get this code working with a loop.

    I want to increment the line in Cells() in each loop.

    any help? tx alot!


    Sub enviar_email()

    Set objeto_outlook = CreateObject("Outlook.Application")

    Set Email = objeto_outlook.CreateItem(0)

    Email.display


    Email.To = Cells(5, 2).Value
    Email.cc = Cells(5, 3).Value
    Email.BCC = ""

    Email.Subject = Cells(5, 4).Value

    Email.Body = Cells(5, 5).Value & "," & Chr(10) & Chr(10) _
    & Cells(5, 6).Value & Chr(10) & Chr(10) _
    & "Boas Vendas!" & Chr(10) & "Joćo"

    Email.Attachments.Add (ThisWorkbook.Path & "\Detalhes\" & Cells(5, 4).Value & ".zip")
    Email.Send

    End Sub
    Last edited by Fariaz; 03-09-2021 at 04:26 PM. Reason: Correct the tittle

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Mass emailing with a loop from a list

    .
    This is one method :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-09-2021
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    3

    Re: Mass emailing with a loop from a list

    thanks Logit,

    Worked like a charm!

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Mass emailing with a loop from a list

    .
    You are 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. [SOLVED] Mass Create PDF Loop
    By CHolden in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-26-2018, 03:26 PM
  2. [SOLVED] Mass Change Dropdown List Range
    By Toyo613 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2017, 08:01 PM
  3. How to mass select items in excel drop down list?
    By karyx in forum Excel General
    Replies: 5
    Last Post: 06-06-2017, 05:22 AM
  4. Mass Emailing based of column values: Email, Subject, File
    By GingerMountain in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-29-2015, 01:06 PM
  5. Replies: 2
    Last Post: 12-05-2014, 02:37 PM
  6. Emailing to list
    By KevBotes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2014, 09:12 AM
  7. Emailing A List of People using VBA
    By n_s_simpson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2006, 05:13 AM

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