+ Reply to Thread
Results 1 to 5 of 5

Email macro depending on values in 2 Columns.

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Email macro depending on values in 2 Columns.

    Hi, I'm new to using VB and have found this forum a great resource from which to learn so far but unfortunately I have been unable to find a code close enough to edit to suit my needs.

    I am running an excel file to keep track of items in stock. When an item comes in it is booked onto the excel sheet. It must leave stock within 2 days. I want to set up a system to alert the person in charge of that item by email so the email will contain their name and the item number.

    I have looked into running such a macro automatically but I doubt it would be possible on my system so the excel sheet would likely require a button to run through the items on the sheet and see which items are nearing the 2 day value and email those responsible. The emails for each person are contained on the "Emails" sheet.

    I have attached a test document as I cannot upload the actual document but they are essentially the same. I'd appreciate any help on this and thanks in advance!

    Dan
    Attached Files Attached Files
    Last edited by pladan; 08-25-2012 at 06:44 AM.

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Email macro depending on values in 2 Columns.

    Hi pladan

    I've used youre test.xls and came up with this:
    Try the Send E-mail button and get back to me if it's ok this way or not.
    Last edited by stojko89; 08-24-2012 at 05:48 AM.

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Email macro depending on values in 2 Columns.

    That's perfect! Thank you! How would I go about adding to the code such that there would be another column titled "Reminder Sent?" which would have YES under it for the item if it has been sent. So if there was a "YES" an email wouldn't send.

    Thanks again.

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Email macro depending on values in 2 Columns.

    Ok so assuming the "YES" will be in column next to the Days to clear value then swich that code with this one:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-23-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Email macro depending on values in 2 Columns.

    Thanks again! Great work!

+ 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