+ Reply to Thread
Results 1 to 2 of 2

How to set up a VBA to automatically send an e-mail to Gmail if conditional format is met

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    Iowa
    MS-Off Ver
    2013
    Posts
    1

    How to set up a VBA to automatically send an e-mail to Gmail if conditional format is met

    Hello Everyone,

    In my business, I use an excel spreadsheet for each client that is saved to a single folder. For each client spreadsheet, there is a Missing Info sheet with a missing information column, a reminder date column, and a received missing information column. To track the missing items, I currently use a basic conditional formatting rule (note: I'm not sure I created it correctly, but it seems to work as intended) that highlights a cell red with white font if it is past the reminder due date and if the received missing information column is empty. I have attached a sample spreadsheet with my conditional format rule.

    To track the status of missing items, each week I check each client's spreadsheet to confirm what items are still missing. This worked fine in the past, but my client list has grown to the point where it would be useful to have this process automated so that once the conditional format is met I would receive an email to my Gmail account notifying me that a client file still has missing information.

    So my first question is can this process be automated via a VBA without having to keep all my client spreadsheets open in excel? (Or perhaps set up a task so that once a week all the spreadsheets in my folder are briefly opened and closed which would trigger the VBA to run?) Can I configure it so that I would continue to receive an email notification about a client's spreadsheet once a week until their file no longer has an item that meets the conditional format rule? Finally, how would I go about setting this up in VBA (I have almost no experience with using VBA)?

    If you have any questions, please let me know. Thanks.

    Revec
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How to set up a VBA to automatically send an e-mail to Gmail if conditional format is

    Very doable, at least if you have Outlook on the system that will be sending the mail. I suppose that VBA can also talk to other mailers, but I only have the code for Outlook and am not set up to test with other mailers.

    Also for the mail program to work, you have to be logged into the machine with Outlook on it. Outlook does not have to be launched, it just needs to be installed and configured. You can lock the screen.

    I have a couple of programs that do this. I use the windows task scheduler to launch a script, which in turn, opens a spreadsheet, runs a macro and then closes it.

    Can you live with the limitations noted above?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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 mail automatically
    By shyam sundar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 05:20 PM
  2. Word Format as Body of mail using Send mail
    By andy_iyeng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2012, 05:04 AM
  3. Automatically send Mail for Due Dates from Excel
    By Kohinoor in forum Excel General
    Replies: 1
    Last Post: 03-20-2009, 12:10 PM
  4. automatically attach and send by e-mail
    By Simon-ch in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-22-2009, 05:31 AM
  5. Send e-mail with Lotus automatically
    By cexarsiado in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 08-25-2006, 03:43 AM
  6. Automatically Send E-Mail
    By STEVEB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2005, 01:05 PM
  7. [SOLVED] Send e-mail automatically from excell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2005, 12:05 PM
  8. [SOLVED] Automatically Send Mail From Cell
    By Suzanne in forum Excel General
    Replies: 1
    Last Post: 05-25-2005, 12:06 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