data sheet.jpg
I have a excel file that has two sheets.
Sheet1 has few columns and each column contains dates(reminder dates for documents expiring such as insurance card expiration date, license expiration date etc etc).
1. I want to be able find all dates that are expiring within next 30 days or less from today.
2. add them to sheet2
3. Send sheet2 via gmail to a few recepients using (smtp.gmail.com).
I have implimented all of this but its getting stuck at two points
Firstly, it only picksup the first date it encounters that meets the criteria and writes it to sheet2. Thats it. Does not go write next field.
Secondly it fails to send email via Attachments.add
Bookmarks