neilsolaris
New Member
- Joined
- Feb 5, 2015
- Messages
- 7
Hi,
I wrote some code previously that sends individual emails according to data in an Excel file. It all works well, but I'd like to insert an If statement, in order to replace "Hi" with "Good morning / Good afternoon / Good evening" depending on the time of day.
The problem I have is this. Let's say that I start with setting the email body as "Good morning " (if it's morning). Then when the code resumes, it overwrites the "Good morning " with the remaining email.
So my question is, how can I write the code in such as way so that I can resume the email body from where I've left off? I don't know if my question is clear or not. If not I can attach some code if necessary.
Many thanks for your help.
I wrote some code previously that sends individual emails according to data in an Excel file. It all works well, but I'd like to insert an If statement, in order to replace "Hi" with "Good morning / Good afternoon / Good evening" depending on the time of day.
The problem I have is this. Let's say that I start with setting the email body as "Good morning " (if it's morning). Then when the code resumes, it overwrites the "Good morning " with the remaining email.
So my question is, how can I write the code in such as way so that I can resume the email body from where I've left off? I don't know if my question is clear or not. If not I can attach some code if necessary.
Many thanks for your help.