+ Reply to Thread
Results 1 to 2 of 2

Macro to send Email notification to specific people

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Macro to send Email notification to specific people

    I have written a Macro that transfers data from and input sheet into a data collection table. On the click of the button, the data is transferred to a new row, the input sheet it cleared, the workbook is saved and I receive an email notification to say that new information has been added to the sheet.

    I would like to know how to get the email notification to go to different people depending on the contents of a cell.

    For example,

    I have a merged cell (B9:C10) that details from which department action is required (Operations, Engineering or Quality).

    How do I adapt my code so if the cell = “Operations” it sends the email to PERSON A

    If the cell = “Engineering” it send the email to PERSON B etc etc.

    My current email code is as follows:

    Please Login or Register  to view this content.

    Please help.
    Thanks

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

    Re: Macro to send Email notification to specific people

    JDGreen17,

    You should simply be able to have a lookup somewhere hidden in your sheet that has the Group and Email address.
    When you then select the group, it looks up the email address and passes it to a variable (which we will call strEmail) which you can then use in your code:

    Please Login or Register  to view this content.

+ 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. Macro to send Email notification to specific people
    By JDGreen17 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2014, 11:25 AM
  2. VBA code to send email to the people whose email address is in the Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2014, 05:11 AM
  3. Macro to send notification from excel to my Outlook Email
    By savethisid in forum Excel General
    Replies: 18
    Last Post: 03-27-2014, 02:25 PM
  4. Excel Macro to send notification email when items pass a certain date
    By Krist87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2014, 09:08 AM
  5. How to send email notification from excel
    By amitwaje in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2012, 06:49 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