+ Reply to Thread
Results 1 to 4 of 4

automatic sending mail from excel 30 days before due date

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    stavanger
    MS-Off Ver
    Excel 2010
    Posts
    13

    automatic sending mail from excel 30 days before due date

    Hey

    is there anyone who can help me with vba code for Automatically sending email with outlook when cell N3 to N2000 in sheet3 is 30 days to due date.

    for example if N5 is 30 days dueDate will get a mail automatically where cell D5, E5, G5, H5, J5.K5, L5, N5 is copied and sent in the mail,
    and the same for N6 where D6, E6, G6, H6, J6.K6, L6, N6 copied and so on.

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: automatic sending mail from excel 30 days before due date

    Hi Tekken,

    Yes, we can help. Will you be able to provide your sample work file removing all your sensitive data. This is to avoid re-working on requests as we try to clear doubts and confusions in minimum posts.
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: automatic sending mail from excel 30 days before due date

    Good Afternoon Tekken,

    Please see the below code. I've ripped it from my own code and editted a wee bit. I've left a few lines of my code in, for example in the message for the e-mail, so you can see how reference certain cells. This code checks column 'O' to see if an e-mail has already been sent and if not then checks row N for the date. If it's within the next 30 days it will generate an e-mail, it doesn't send automatically. Then puts an 'X' in column O, so when you open the workbook again it won't generate an e-mail everytime. you can change this easily though. It repeats this until every row is checked. beware, if you have 100 e-mails to be sent in the next month and apply this then it's going to generate 100 e-mails, which can take a while, and can be a pain in the *** to close :P

    Hope this helps, if not reply with a sample workbook as advised by Codeslizer

    Please Login or Register  to view this content.
    Last edited by RichTea88; 08-13-2013 at 11:25 AM.

  4. #4
    Registered User
    Join Date
    05-22-2013
    Location
    stavanger
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatic sending mail from excel 30 days before due date

    hey

    do you have the opportunity to take a look at it, I copied the code you made ​​but it was not working the way i would have it, the sheets do not start before row 3 and is it possibility to copy colum D, E, G, H, J.K, L, N in the mail?
    Attached Files Attached Files

+ 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. Automatic mail on due date (30 days or closer)
    By medioman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2012, 05:32 AM
  2. Excel 2007 : Automatic e-mail sending in Excel 2007
    By Guvanch in forum Excel General
    Replies: 1
    Last Post: 03-31-2012, 02:46 PM
  3. automatic e-mail sending from excel
    By Ivica Rihter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2006, 04:55 PM
  4. Sending automatic e-mail from Xl
    By JBCIB in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-25-2006, 03:57 PM
  5. Sending lotus note Mail from excel - keeps connecting to default mail file
    By cozmo_83@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2005, 06:50 AM

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