+ Reply to Thread
Results 1 to 1 of 1

Macro for searching dates and sending an email

  1. #1
    Registered User
    Join Date
    10-11-2016
    Location
    Germany
    MS-Off Ver
    Office 2007
    Posts
    1

    Macro for searching dates and sending an email

    Hi there,

    unfortunately I know nothing about Macros, but I would like to simplify some work with an excel-sheet.

    My Problem:
    I have got an excel sheet with the following entries: In the column E2:E207 there are names of the form last name, first name. Now there are two cases.
    First case: For the rows with the entry "xx" in column L, there are dates of the form DD.MM.JJJJ in the columns D, F and G.
    Second case: For the rows without the entry "xx" in column L, there are dates of the form DD.MM.JJJJ in the column D and F, but not in G (G is empty).
    Now I would like to know the number of all the cases, where the date of the entry in column G for the first case and column D for the second case differs more than 1 year from a specific date, e.g. 17.12.2016. This number should be shown somewhere in the sheet (e.g. in a box under row 261).
    Further more the macro should send an email to the person (who is associated to the date which differs from the specific date) named in column E with a short massage as a reminder. This massage should be always of the form:
    "Dear person, this massage is generated automatically. Please work on the following numbers: [...] With kind regards, Herbart"
    The numbers should be the row number of the person associated to the date which differs more than one year from the specific date. The entries of the persons are sometimes repetitive. The person should not get more than one mail. So all the "critical" numbers should be named in one mail.

    I hope I described my problem good enough. Thank you for your help.

    Kind regards,
    Herbart
    Last edited by Herbart; 10-11-2016 at 10:15 AM. Reason: add information

+ 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. Replies: 4
    Last Post: 01-30-2016, 02:13 PM
  2. Macro Help: Sending Email from VBA
    By Gbrown92 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-26-2015, 12:48 PM
  3. Macro sending email from different email address.
    By learningslowly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 03:24 PM
  4. Sending email notification reminder from excel based on dates.
    By MCCranes in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-13-2014, 12:30 AM
  5. automation/macro for sending email to multiple email address
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2013, 12:13 PM
  6. Sending Email by Macro.
    By dare2join in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2013, 03:09 AM
  7. Macro - sending email
    By Realistic in forum Excel General
    Replies: 1
    Last Post: 02-07-2007, 12:33 PM

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