+ Reply to Thread
Results 1 to 6 of 6

Use Excel to send an Outlook email based on conditions

  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Use Excel to send an Outlook email based on conditions

    Hello
    I've inserted an image of my spreadsheet and its pretty simple. I need Excel to send me an email on the first of each month to alert me when one of my employees has a birthday that month. The employee names are in cells B3:B12 and their dates of birth are in cells C3:C12. I'd like the email to tell me the name and DOB of each person who has a birthday that month. I have Excel 2010 but I'm not a programmer.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Use Excel to send an Outlook email based on conditions

    Put the following in the VBA for "ThisWorkbook"

    Please Login or Register  to view this content.
    And this in a Module
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: Use Excel to send an Outlook email based on conditions

    Thanks for your help. I plugged it in but I don't know if it works. I'll wait and see if I get an email

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Use Excel to send an Outlook email based on conditions

    Quote Originally Posted by worthm View Post
    Thanks for your help. I plugged it in but I don't know if it works. I'll wait and see if I get an email
    Thats probably not a good way to test, why not set up a fake employee or two or even just change the dates of 2 or 3 to this month?
    If someone has helped you then please add to their Reputation

  5. #5
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: Use Excel to send an Outlook email based on conditions

    Thanks, that's good advice. I've added the two programming pieces to the right places and Ive also added two people which dates of birth of 11/15 and 11/20 but so far nothing has gone to my email address. I also changed the a = SendeMail("[email protected]", part to change the dummy email address to my own email address. Still nothing

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Use Excel to send an Outlook email based on conditions

    And have you checked your open emails? the code as I posted it is designed to write the mail and Display it ready for the user to hit Send (once youve tested it you can then change that to .Send and it will send without user intervention. Do you have an open email sitting? Is there a date in A1?

+ 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] Need a Macro to send email from excel through Outlook basis of different conditions
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2014, 10:21 PM
  2. Send Email Based on Multiple Conditions
    By scubab in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2013, 12:25 PM
  3. [SOLVED] Send email from Excel using Outlook
    By clapforthewolfman in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-10-2013, 05:19 PM
  4. Send an email with excel VBA through outlook
    By Alicita in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-10-2011, 05:03 PM
  5. send email message based on cell conditions
    By danusko in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 02:24 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