+ Reply to Thread
Results 1 to 9 of 9

Macro to send different emails to different people with attachment

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Geneva
    MS-Off Ver
    Excel 2010
    Posts
    14

    Macro to send different emails to different people with attachment

    Hi guys,

    I'm looking for some help as I didn't managed to achieve what I'm looking for on my own.

    Capture.JPG

    What I would like to do is the following: For each line/country once I run my macro a different email is sent to the potential email written in Column B to D with the subject of my mail being Col E. In the body of my email I would like to see the Col F but watch out the text need to be formatted nicely like

    Dear France,

    Please find attached your results for 2014 (basically I need to know how to add extra empty lines).

    And finally attached the file which I linked in Col G.

    I hope my request is clear. In advance thank for those who will help, this would be a very nice xmas gift for me.

  2. #2
    Registered User
    Join Date
    02-20-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Macro to send different emails to different people with attachment

    Can you add your file attachment to this - I can help with this for you.
    Also, can you confirm whether it is Outlook or Lotus Notes you want to send the email via?

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro to send different emails to different people with attachment

    Hi Tenma

    do you want three different for each country ?
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Registered User
    Join Date
    07-26-2012
    Location
    Geneva
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro to send different emails to different people with attachment

    Please find attached the excel file.
    I confirm that I'm working with outlook and yes I would need as many email as line/country I could fill.
    Thanks.

    Macro forum.xlsm

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro to send different emails to different people with attachment

    Hi Tenma

    Advise: don't mention dear france/Italy/spain in excel sheet macro will add dear francce/Italy/spain automatically based on column A just u need to enter the mail body part that's it ok

    If u r using signature in outlook then change your outlook signature name in code I mention in code where to change.

    Please Login or Register  to view this content.
    Please do let me know if u face any problem and I hope this will work perfect for u.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-26-2012
    Location
    Geneva
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro to send different emails to different people with attachment

    Hi Naveed Raza,

    Wow this is pretty impressive in such a short time. I just reviewed it with my boss and unfortunately he wants to modify a little bit the file as per new attachment.
    The logic is pretty much the same but it would give us more flexibility if I need to edit the code as yours is too complex for me.

    There is one more thing that need to be added if possible. At the end of the file you can see from Col J to Macro forum v2.xlsmP the people that need to be in "to" in the mail and from Q to U in "cc". Because I'd like to have only one email sent per country to all the people in the same time vs one separate email per person in your macro.

    2 things that I really liked in your is the button to launch the macro and especially the fact that the mail is ready to be send but not yet sent (it give me the chance to review it if needed).

    Do you think it would be feasible for you to include all those changes or am I too much a pain in the a**.

    Macro forum v2.xlsm

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro to send different emails to different people with attachment

    Hmm Ok give me some time I will get back to u shortly with appropriate solution

  8. #8
    Registered User
    Join Date
    07-26-2012
    Location
    Geneva
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro to send different emails to different people with attachment

    Yes sure take your time, I'm not working until next Monday anyway.

  9. #9
    Registered User
    Join Date
    07-26-2012
    Location
    Geneva
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro to send different emails to different people with attachment

    Hi Naveed,

    any chance I can still count on your help for this one?
    Thanks in advance.

+ 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. Users send emails to themselves and it's delivered to a group of people?
    By MetroBOS in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-19-2014, 02:53 PM
  2. [SOLVED] Macro To Send Emails with PDF: Multiple Emails and PDF's
    By totoga12 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-19-2014, 06:13 PM
  3. [SOLVED] Macro to send mail via lotus notes diff people diff attachment
    By mangeshp4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2013, 03:01 AM
  4. Sending macro emails using excel: Send emails with their passwords.
    By loveisblind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 03:16 PM
  5. Find totals and send emails to different people
    By Nonboff in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2009, 06:56 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