+ Reply to Thread
Results 1 to 4 of 4

Sending email to different people based on the value in a cell

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Question Sending email to different people based on the value in a cell

    • I have two columns:
    • Column on left with names of engineers
    • Column on right has drop down menu with option :YES and NO
    • Every time an engineer completes his job, and selects YES in column to, a standard email is sent to two concerned ppl.
    • I want to add the engineer’s name as well in the mailing list . How is it possible?


    Additional info :
    • Engineers name in the column same as PC name : Do you think I could use the following code =USERNAME() function to find the PC name and then add [email protected]?
      Please Login or Register  to view this content.
    • Is there a way to tell the code to take the engineer’s name from column 1 and add [email protected] and send ?

    Code for sending email used :

    Please Login or Register  to view this content.
    Any hints and help will be highly appreciated.

    Thanks !
    Last edited by subbby; 12-18-2013 at 11:54 AM. Reason: SOLVED

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Sending email to different people based on the value in a cell

    Just replace:
    Please Login or Register  to view this content.

    with
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Sending email to different people based on the value in a cell

    Are you trying to add the engineer to the To or the CC?

    I would guess if the engineer is sending it to themselves you would want it in the CC line. Maybe:
    Please Login or Register  to view this content.
    Last edited by Solus Rankin; 12-18-2013 at 11:44 AM.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  4. #4
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Sending email to different people based on the value in a cell

    Both answers were useful and answered what I was looking for.

    REPUTATIONS ADDED.

    @Solus,

    it was to be added to CC .

    Thanks

+ 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. sending email automatically based on several components in a worksheet
    By liz5818 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-11-2013, 11:25 AM
  2. Sending Email with email address in cell 22
    By albert28 in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 11:24 AM
  3. Add signature to Outlook based on the user sending the email/ Multiple users
    By hanott1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2011, 03:40 PM
  4. Sending email out based on time and condition?
    By Steve999 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2011, 08:22 PM
  5. Sending email based on cell content
    By Hoosteen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2007, 02:08 PM

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