+ Reply to Thread
Results 1 to 9 of 9

Send E-Mail to list of individuals defined in a particular Range

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Smile Send E-Mail to list of individuals defined in a particular Range

    Hello Friends,

    Need your help to accomplish subjected query!

    Please open the attached file (normally it saved in a network path); this is a standard template which we are using it for some approval process.

    Column L will be updated by some corporate person (based on input from some external sources) who is sitting some other plant.

    Daily I need to send an update to a list of people as below & I want this to happen just by press “Send Request” button:-

    To Recipient: - VBA has to look the Mail ID from E-Mail List worksheet and the Range is C3:C12.

    Cc Recipient: - VBA has to look the Mail ID from E-Mail List worksheet and the Range is D3:D12.

    Subject of the E-Mail:- “Serial Number 2,4,6,7,8,9,11,12,13,14,15,16 is Waiting for the Approval” (VBA has to pick the serial number based on code updated in Column N i.e. Zero)

    Content of the E-Mail:- Excel File where it is saved, that Network path link should appear

    Signature of the E-Mail: - Let this be a default signature which is defined in my outlook.

    Immediate suggestion is really appreciated!

    Thanks & Regards,
    Rajeshkumar R
    Attached Files Attached Files
    Last edited by Rajeshkumar R; 10-04-2013 at 02:59 AM. Reason: Query Resolved

  2. #2
    Registered User
    Join Date
    09-27-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hi Rajesh,

    Please find the full working code of your project.

    Open your file and saveas .xlsm format. Insert a module and paste the code. Also update the references - Add Microsoft Outlook items and the signature location in the code below at 'Change this string - according to your system setup - c: or D:

    _______________________________________________________
    Please Login or Register  to view this content.
    _______________________________

    Enjoy maadi.

    Regards,
    Lokesh

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 09-25-2013 at 08:53 AM.

  3. #3
    Registered User
    Join Date
    09-27-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Send E-Mail to list of individuals defined in a particular Range

    Also update the sheets with the sheetname Rawdata and E-Mail list with wksRawdata and wksEList in VBA editor.
    Regards,
    Loki

  4. #4
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hello lokicl,

    Thank you so much for your immediate support!

    I really appreciate the way you break down my query with the code. As I am a beginner with VBA, formatting the code to get rid of the error is little challenging for me. Hence if you can help me in getting the clarification on below listed issue, it would be truly help full for me.

    1. As you said, I had copy paste your code into new Module in VBA and renamed (is there any specific reason for wksrawdata & wksElist name) the worksheet as you mentioned.

    2. Now, When I am trying to run the Macro I am getting an Error like “Run-time error ‘424’: Object required”

    3. In the VBA code we have something called “For i = some number like 3, 2 6”, where as we have not defined anywhere what is this i!

    4. Last but not least, as mentioned early I am completely new to this VBA, So for each of your code if you can update me comments like 'Outlook.Application, 'Change this string - according to your system setup - c: or D:. I can have more clarity on your code.

    Once again Thank you for your time on this!

    Thanks & Regards,
    Rajeshkumar R

  5. #5
    Registered User
    Join Date
    09-27-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hi Rajesh,

    below are my comments:

    1. As you said, I had copy paste your code into new Module in VBA and renamed (is there any specific reason for wksrawdata & wksElist name) the worksheet as you mentioned
    - it should be renamed in the respective Sheet properties

    2. Now, When I am trying to run the Macro I am getting an Error like “Run-time error ‘424’: Object required”
    - you have renamed the worksheet - Requested you the update the sheet name in the Sheet properties - when you open the VBE Editor - click on the sheet and update the name - hence the error

    3. In the VBA code we have something called “For i = some number like 3, 2 6”, where as we have not defined anywhere what is this i!
    - "for i" is a loop statement - the number 3, 2 etc defines the start of the counter


    4. Last but not least, as mentioned early I am completely new to this VBA, So for each of your code if you can update me comments like 'Outlook.Application, 'Change this string - according to your system setup - c: or D:. I can have more clarity on your code.
    - this will run only with Outlook Application
    - the string is - your signature stored path e.g. as per my system setup it is D: but mostly the user profiles will be in C:

    However attaching the working project. Check you signature path and update the sig string. I will work.

    Thanks & Regards,
    loki
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hello lokicl,

    Once again Thanks for your valuable explanation and attached file as well. Hope now its working fine. However, I found few observations as below, when I started to work on the file.

    1. E-Mail is reaching only to Cc: Recipients and it’s not reaching to any of To: Recipients.

    2. Subjected of the E-Mail is only picking up first zero of Serial number like “Serial Number 2 is waiting for the Approval”. Instead it has to pick all serial numbers which is defined as zero in Column N.
    “Serial Number 2,4,6,7,8,9,11,12,13,14,15,16 is Waiting for the Approval” (As I mentioned in the first post).

    3. File Name is just getting pasted as is like text in the body of the E-Mail, but it has to get pasted as Hyperlink path, so that the recipient can just clink of the link and get open the File.

    4. I just thought instead of Signature, let us give the message like “It’s an Auto Generated E-Mail” only.

    Thanks & Regards
    Rajeshkumar R

  7. #7
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hello lokicl,

    Any help and support on my previous post!

    Thanks & Regards,
    Rajeshkumar R

  8. #8
    Registered User
    Join Date
    09-27-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hi Rajesh,

    Please find attached the updated tool.

    Request you update the To list with valid mail id, because it is working fine for me.

    Regards,
    loki
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Send E-Mail to list of individuals defined in a particular Range

    Hello lokicl,

    Amazing, now the file is working exactly the way I need… Simply superb…. Thank you so much for your great support on this….

    Thanks & Regards,
    Rajeshkumar R

+ 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. Need to Send the E-Mail as per Defined Criteria!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2013, 07:15 AM
  2. Using VBA to send a range in pdf via e-mail
    By BullseyeThor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2013, 11:54 AM
  3. Send list of E-mail Addresses to Microsoft Outlook
    By RIFRAF in forum Excel General
    Replies: 2
    Last Post: 09-29-2009, 11:59 AM
  4. send mail to a list of destinators
    By jijaLaClasse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2008, 09:35 AM
  5. [SOLVED] "User-defined type not defined" error when trying to send e-mail
    By SupperDuck in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2006, 02:40 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