Hi,
I have been unsuccessfully trying to do the following:
Background: I have an Excel list with some data in 4 columns. Colum A is the status, columns B contains dates, column C contains some activities (some text) and column D contains some names:
[TABLE="width: 397"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]12-02-2018
[/TD]
[TD]Do this
[/TD]
[TD]John
[/TD]
[/TR]
[TR]
[TD]Closed
[/TD]
[TD]10-01-2018
[/TD]
[TD]Do that
[/TD]
[TD]James
[/TD]
[/TR]
[TR]
[TD]Closed
[/TD]
[TD]09-03-2018
[/TD]
[TD]Do not do this
[/TD]
[TD]Jim
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]12-02-2018
[/TD]
[TD]Maybe do this
[/TD]
[TD]Jack
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]10-01-2018
[/TD]
[TD]Look at that
[/TD]
[TD]Jim
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]20-12-2017
[/TD]
[TD]seat over there
[/TD]
[TD]Jessi
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]25-04-2018
[/TD]
[TD]Wash my car
[/TD]
[TD]Jim
[/TD]
[/TR]
</tbody>[/TABLE]
What I need in general is that we click a button, and upon clicking some emails will be sent out using MS Outlook. In detail; the code shall search in column “A” and find instances of “Open” and then it should look in column D for those who have an open case. When that is found, anybody who has an open case shall receive an email. The email body then shall contain what is in column C for corresponding recipient (column D contains the recipients).
The tricky part (and important part) could be that if there are more than one open case (e.g. 3 cases) for e.g. Jim, then the program shall send only one email (and not 3 emails) to Jim. That email of course shall contain the content of column C for those rows that are of interest (open). An example for Jim based on the above table could look like:
******************************************
Dear Jim,
Please address the following:
1-look at that
2-Wash my car
Thanks Jim.
****************************************
I woudl really appriciate any help. If it is difficult to make it in one row, we maybe can do it in steps
Thanks in advance
I have been unsuccessfully trying to do the following:
Background: I have an Excel list with some data in 4 columns. Colum A is the status, columns B contains dates, column C contains some activities (some text) and column D contains some names:
[TABLE="width: 397"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]12-02-2018
[/TD]
[TD]Do this
[/TD]
[TD]John
[/TD]
[/TR]
[TR]
[TD]Closed
[/TD]
[TD]10-01-2018
[/TD]
[TD]Do that
[/TD]
[TD]James
[/TD]
[/TR]
[TR]
[TD]Closed
[/TD]
[TD]09-03-2018
[/TD]
[TD]Do not do this
[/TD]
[TD]Jim
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]12-02-2018
[/TD]
[TD]Maybe do this
[/TD]
[TD]Jack
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]10-01-2018
[/TD]
[TD]Look at that
[/TD]
[TD]Jim
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]20-12-2017
[/TD]
[TD]seat over there
[/TD]
[TD]Jessi
[/TD]
[/TR]
[TR]
[TD]Open
[/TD]
[TD]25-04-2018
[/TD]
[TD]Wash my car
[/TD]
[TD]Jim
[/TD]
[/TR]
</tbody>[/TABLE]
What I need in general is that we click a button, and upon clicking some emails will be sent out using MS Outlook. In detail; the code shall search in column “A” and find instances of “Open” and then it should look in column D for those who have an open case. When that is found, anybody who has an open case shall receive an email. The email body then shall contain what is in column C for corresponding recipient (column D contains the recipients).
The tricky part (and important part) could be that if there are more than one open case (e.g. 3 cases) for e.g. Jim, then the program shall send only one email (and not 3 emails) to Jim. That email of course shall contain the content of column C for those rows that are of interest (open). An example for Jim based on the above table could look like:
******************************************
Dear Jim,
Please address the following:
1-look at that
2-Wash my car
Thanks Jim.
****************************************
I woudl really appriciate any help. If it is difficult to make it in one row, we maybe can do it in steps
Thanks in advance