Hi,
I'm new with VBA and I've been working on a macro to help automate sending a welcome email to new employees in my company based on their start date. I successfully managed to mess up the macro completely last Friday by trying to edit it to take the start date into account, so I'm in a desperate need of help from VBA experts.
I'll attach an example excel to this message, if this let's me do it, so you get the idea (without the macro though since that is gone, but it was really basic). I managed to create the basic macro containing the message, recipient, cc/bcc and attachments, but there I ran out of knowledge.
Basically I'd need the macro to:
-> check the start date of the employee in the row, and if its today or within ~3 days to the future (I'll fix the formula in column D, it's just there now to show you what I was thinking about), send the employee a welcome email and add their supervisor as a cc. If the date in the column is in the past, the macro shouldn't send email.
Any idea if this is even possible? I'm aware that I'll propably have to run the macro, but that's okay as long as it would check who to send the emails to.
Thanks, if someone can help me forward with this one
vba-help.PNG
VBA-example-excel.xlsx
Bookmarks