1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Send Email using Excel and Outlook Automatically

Discussion in 'Business Applications' started by vjy, Feb 1, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. vjy

    vjy Thread Starter

    Joined:
    Dec 27, 2008
    Messages:
    3
    I am attaching this excel sheet which has codes on sending email automatically on due date once the file is opened and then closes it as well. However there seems to be a problem as it doesn't send emails automatically and comes up with a error. It would be grateful if someone could correct the codes in the file.
    Thank You
     

    Attached Files:

  2. Sponsor

  3. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,352
    Hi welcome to the forum,

    Change the code to the following

    Set wksReminderList = Sheets(ActiveSheet.Name)

    You received a messags was sent to the Hotmail address, please ignore the email address but it works if you change this.
     
  4. vjy

    vjy Thread Starter

    Joined:
    Dec 27, 2008
    Messages:
    3
    Hi,

    Thank you for help but it does not work ?? i am trying to get work for last one week but steel not working.

    It would be very great full if can have look in attached file and check the code and correct the code...

    Please ..
    Thanks
     
  5. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,352
    All you had to do was correct the line I mentioned, her's the file, corrected

    With this file I sent you the 'automatic message', you did get, right?

    If you did, it works, but you must make sure the conditions you state are met
     

    Attached Files:

  6. vjy

    vjy Thread Starter

    Joined:
    Dec 27, 2008
    Messages:
    3
    It does work but is there a way I could get the macro to run automatically when the excel file opens without running it manually?
     
  7. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,352
    yes you place it in ThisWorkbook

    Code:
    Private Sub Workbook_Open()
    ' activate the sheet and call the macro
    
    Sheets("Sheet1").Activate
    SendReminderNotices
    
    End Sub
    
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1087818