+ Reply to Thread
Results 1 to 6 of 6

VBA Macro to Send Email Reminder of Certification Expiration

  1. #1
    Registered User
    Join Date
    09-08-2020
    Location
    USA
    MS-Off Ver
    microsoft 365
    Posts
    3

    VBA Macro to Send Email Reminder of Certification Expiration

    Hello everyone,
    Sorta new to VBA macros but love learning the ropes. If someone could help build the template for this and I would be able to learn and build so much more to VBA macros for all my excel sheets just from the source code template.
    I don't know if all this is possible exactly, but 90% sure.

    Excel version is Microsoft 365.

    So in my excel file, I have a column for names, different certs 1,2,&3 etc, and emails.

    Currently have conditional formatting in the cert dates as:
    Green = Valid
    Orange = 30 days from now
    Red = Expired

    I am trying to set up a way to send an email to a team member if his/her certification is about to expire in 30 days and to send an email to a team member if his/her certification is expired.

    With the Subject, Body, and Text to be formulated from a separate sheet.

    Preferably would like to execute a toggle button to preform these actions; that way it does not send the email out every time the file is opened as the file has to be accessed multiple times throughout the week.

    For testing purposes, I'll have the email display(.Display) but in actual production, would like it to send(.Send) automatically.

    Let me know of any other required information to help get this going.
    Attached Files Attached Files

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VBA Macro to Send Email Reminder of Certification Expiration

    Hi wisu & welcome to the forum,

    Try the below code as a starting point ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Registered User
    Join Date
    09-08-2020
    Location
    USA
    MS-Off Ver
    microsoft 365
    Posts
    3

    Re: VBA Macro to Send Email Reminder of Certification Expiration

    Omg, this work flawlessly as I requested. Cannot thank you enough!

    A quick possible change request in the end outcome.

    Instead of the
    "will expire in less than 30 days"
    and
    "has already expired"
    is there any chance to have it read instead,
    "will expire in (#) days"
    and
    "is (#) days expired."

    I may want to change the variables down the road for what is red vs yellow and this will eliminate the "30 day" factor.

    Thanks again nankw83!

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VBA Macro to Send Email Reminder of Certification Expiration

    Try the below code to calculate the # of days ...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-08-2020
    Location
    USA
    MS-Off Ver
    microsoft 365
    Posts
    3

    Re: VBA Macro to Send Email Reminder of Certification Expiration

    Learning a lot just from studying and reviewing this code.

    nankw83, thank you sooo much! I really appreciate your help in this.

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VBA Macro to Send Email Reminder of Certification Expiration

    Glad to help

    If the provided solution takes care of your original question, please take a moment & mark this thread as [SOLVED] from the Thread Tools above your first post & consider * Add Reputation to those who have helped by clicking the star icon under their usernames

+ 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: 12-24-2015, 12:02 PM
  2. Use Hyperlink to send email 6 months before expiration date
    By mcivli65 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-28-2015, 01:24 PM
  3. [SOLVED] Send email with reminder
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2015, 04:37 AM
  4. Send email with reminder through VBA
    By sarat47 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2015, 11:46 AM
  5. Macro to send birthday reminder via outlook email
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-01-2014, 10:29 AM
  6. auto search for expiration date and send email to users
    By mingchu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2013, 06:07 PM
  7. send auto email reminder
    By krishnsv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2012, 11:36 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