I'm basically writing a macro to send emails to people when their tasks are overdue. I'm getting multiple problems with this. I have wrote the following code:
The email looks at the email in column 13 and sends an email to them based on the conditions wrote in the code. I have set it up so that it runs whenever the spreadsheet opens. The macro DOES do what it is intended, however, I get an error on the line "olMail.Send" saying "run-time error '2147467259 (80004005): we need to know who to send this to. Make sure you enter at least one name."
Is there any reason for this? Whilst it does do what I need to as is, I don't like the error that's popping up, and may cause others to panic should they use this spreadsheet.
Bookmarks