Send Email using Excel and Outlook Automatically

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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
 

Attachments

Keebellah

Hans
Trusted Advisor
Joined
Mar 27, 2008
Messages
6,612
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.
 

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
 

Keebellah

Hans
Trusted Advisor
Joined
Mar 27, 2008
Messages
6,612
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
 

Attachments

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?
 

Keebellah

Hans
Trusted Advisor
Joined
Mar 27, 2008
Messages
6,612
yes you place it in ThisWorkbook

Code:
Private Sub Workbook_Open()
' activate the sheet and call the macro

Sheets("Sheet1").Activate
SendReminderNotices

End Sub
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top