+ Reply to Thread
Results 1 to 4 of 4

excel code that will send mail to 2 email ID before 30 days of visa date expiry

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    8

    Lightbulb excel code that will send mail to 2 email ID before 30 days of visa date expiry

    can somebody provide me with code for i have a tracking sheet in excel regarding the visa expiry of the employee, more or less 300 employee,

    col A: 1 TO 300 (from row 4 till down)
    COL b : employee name (from row 4 till down)
    COL C: date of joining (from row 4 till down)
    COL D: VISA EXPIRY ( from row 4 till down)

    I want to sent email notification to 2 email ID 30 days before the day of expiry.

    please some one help me with this problem
    Last edited by rinadimayuga; 05-19-2012 at 04:09 AM.

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: excel code that will send mail to 2 email ID before 30 days of visa date expiry

    Hi rinadimayuga,

    I have added one more colum to track if the mail has already been sent. Imagine 30 days before the expiry date is a holiday and next day the condition would no longer apply. Therefore the macro will act on all dates <= 30 days before unless the "sendt flag" is already sent.
    It requires MS-Outlook to be installed on the users machine.

    Please Login or Register  to view this content.
    Regards

    Theo

    P.S: Don't forget to mark your threads as closed once your issue is solved and don't forget to thank those who helped you by clicking on the star to the left of the helpers reply
    Remember To Do the Following....
    1. Upload sample files
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    8

    Thumbs up Re: excel code that will send mail to 2 email ID before 30 days of visa date expiry

    Thank you so much, I realy appreciate, it works great for me ^_^ GOD BLESS U MORE

  4. #4
    Registered User
    Join Date
    05-18-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: excel code that will send mail to 2 email ID before 30 days of visa date expiry

    Dear, if for example in row 6 i miss writing the due date and in row 5 the expiry date is less than 30 days then i am also receiving mail notification including row 6 details name and the expiry date will show 12AM, any thing need to rectify this problem?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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