Hi,
I have a report (sample attached) that I extract from DB, which shows projects that appears to have errors. Errors are indicated by formula result "1" (Columns H-K), and color coded red. I have specific outlook templates for each error that I send out to Managers, where I have to add/paste to the body of the template a range on the worksheet before sending it out. This post seem to be somewhat similar to my problem, It's here: http://www.excelforum.com/excel-prog...excel-vba.html
What I want to do is:
1. Use the template I have on my outlook, specific for each error. E.g, for "Error on Start Date" I call "Temp for Error on Start Date", etc.
2. Copy the range corresponding to the error and paste it to the body of the template, a few lines above my signature. E.g. Line 155 has Error on Start Date, I want to copy Row 155, from Columns A-G, always including the header and incorporate it on the body of the email.
3. Send out the email to the Manager, which name's appear on Column G of the worksheet. However, the name of the Mgr on that cell is on format Firstname(space)Lastname only, and I need it to be on the format of [email protected] and put that on the To: field of the template. This is a bit tricky because there are instances that there is no Mgr name listed (blank), or just have TBD on it, or not in the format of Firstname(space)Lastname. I need to add additional column or some kind of indicator that will tell me which row/items didnt send out an email because they have this values, so I can look at it. At the same time, I need to have an indicator for those rows/items that have successfully sent emails, so when i re-run the code, it will not send another email again.
I hope you could help me.
Thanks,
Sarah
Bookmarks