+ Reply to Thread
Results 1 to 3 of 3

Generate email from worksheet based on multiple cell values

  1. #1
    Registered User
    Join Date
    07-10-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Generate email from worksheet based on multiple cell values

    Hi. I have a worksheet measuring staff attendance on various courses. Using date-today, a 'days lapsed' value is calculated in column D. If the value of the cell in column D exceeds 365 days, an email is generated to that member of staff using the following code in a module;

    Please Login or Register  to view this content.
    This works fine on a single column, but if I wanted to add another set of columns e.g. if I had columns F, I and J set to measure different lapses e.g.100, 200 or 300 days respectively, could I incorporate this code into the same module? I have tried using a new module for each column, but come up with
    Ambiguous name detected; Testfile
    warnings. Any info gratefully received,
    Mattbro
    Last edited by mattbro; 03-07-2012 at 03:23 PM. Reason: Solved!

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Generate email from worksheet based on multiple cell values

    Hi

    You could just rename your other macros to Testfile2, Testfile and Testfile4, then each would run independently.
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Registered User
    Join Date
    07-10-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Generate email from worksheet based on multiple cell values

    Job done-have renamed, added a run multiple macro sub and got it all to fire off the one button. Excellent-thanks Roger!
    Mattbro

+ 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