Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
All,
I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
More info please about the info in the columns
Start here(see also example 2) http://www.rondebruin.nl/mail/folder3/message.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... All, I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ron,
Column A, cells 1-150 are project numbers that are entered by the user, i.e. 80163, 80176. They are not necessarily in a logical order, but will always be 5 characters in length. Column B, cells 1-150 will be a formula result that compares two other cell values. Therefore man-days allowed MINUS man-days required to give the value in the appropriate cell of column B (either positive or negative). If the cell value is less than 0, the cell colour turns red. For arguments sake man-days allowed would be column C and man-days required column D. The man-days allowed figures (column C) will change very rarely. The man-days required figures (column D) will change, therefore an email sent one week might not need to be sent in three weeks time. Recipients: Will always be the same two people, so they could be defined as "jbloggs...." etc. Sample data: Column A Column B Column C Column D 80163 -15 20 35 80176 15 35 20 80187 0 20 20 80190 -10 20 30 and so on... Therefore the macro should send an email to two recipients (to be specified), for project numbers 80163 and 80190 that say that they have too many man-days allocated to them. Subject header should include the project number to make it easy to know where to amend the data. The email message should include the figure in column B. If in a fortnight, cell B1 (project number 80163) is positive, the macro should re-send the email for project number 80190 (assuming B4 is still negative). Let me know if you still need info. Thanks for the link. I have been looking at your example 2 on http://www.rondebruin.nl/mail/change.htm I am thinking a combination of the two might be the way to go?? -- J "Ron de Bruin" wrote: More info please about the info in the columns Start here(see also example 2) http://www.rondebruin.nl/mail/folder3/message.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... All, I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi James
I read it and reply tomorrow after work Bed time for me now -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... Ron, Column A, cells 1-150 are project numbers that are entered by the user, i.e. 80163, 80176. They are not necessarily in a logical order, but will always be 5 characters in length. Column B, cells 1-150 will be a formula result that compares two other cell values. Therefore man-days allowed MINUS man-days required to give the value in the appropriate cell of column B (either positive or negative). If the cell value is less than 0, the cell colour turns red. For arguments sake man-days allowed would be column C and man-days required column D. The man-days allowed figures (column C) will change very rarely. The man-days required figures (column D) will change, therefore an email sent one week might not need to be sent in three weeks time. Recipients: Will always be the same two people, so they could be defined as "jbloggs...." etc. Sample data: Column A Column B Column C Column D 80163 -15 20 35 80176 15 35 20 80187 0 20 20 80190 -10 20 30 and so on... Therefore the macro should send an email to two recipients (to be specified), for project numbers 80163 and 80190 that say that they have too many man-days allocated to them. Subject header should include the project number to make it easy to know where to amend the data. The email message should include the figure in column B. If in a fortnight, cell B1 (project number 80163) is positive, the macro should re-send the email for project number 80190 (assuming B4 is still negative). Let me know if you still need info. Thanks for the link. I have been looking at your example 2 on http://www.rondebruin.nl/mail/change.htm I am thinking a combination of the two might be the way to go?? -- J "Ron de Bruin" wrote: More info please about the info in the columns Start here(see also example 2) http://www.rondebruin.nl/mail/folder3/message.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... All, I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I understand you correct?
Why not simple filter for negative values in the B column and send the visible data to the two Recipients If this is what you want I wiil create a example for you -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Ron de Bruin" wrote in message ... Hi James I read it and reply tomorrow after work Bed time for me now -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... Ron, Column A, cells 1-150 are project numbers that are entered by the user, i.e. 80163, 80176. They are not necessarily in a logical order, but will always be 5 characters in length. Column B, cells 1-150 will be a formula result that compares two other cell values. Therefore man-days allowed MINUS man-days required to give the value in the appropriate cell of column B (either positive or negative). If the cell value is less than 0, the cell colour turns red. For arguments sake man-days allowed would be column C and man-days required column D. The man-days allowed figures (column C) will change very rarely. The man-days required figures (column D) will change, therefore an email sent one week might not need to be sent in three weeks time. Recipients: Will always be the same two people, so they could be defined as "jbloggs...." etc. Sample data: Column A Column B Column C Column D 80163 -15 20 35 80176 15 35 20 80187 0 20 20 80190 -10 20 30 and so on... Therefore the macro should send an email to two recipients (to be specified), for project numbers 80163 and 80190 that say that they have too many man-days allocated to them. Subject header should include the project number to make it easy to know where to amend the data. The email message should include the figure in column B. If in a fortnight, cell B1 (project number 80163) is positive, the macro should re-send the email for project number 80190 (assuming B4 is still negative). Let me know if you still need info. Thanks for the link. I have been looking at your example 2 on http://www.rondebruin.nl/mail/change.htm I am thinking a combination of the two might be the way to go?? -- J "Ron de Bruin" wrote: More info please about the info in the columns Start here(see also example 2) http://www.rondebruin.nl/mail/folder3/message.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... All, I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ron,
Filtering would work and would probably be the easiest option. As long as the macro filters the list, sends the range and then unfilters the list at the end, it won't be a problem. It would be great if you could set something up. Thanks alot for your help. James -- J "Ron de Bruin" wrote: If I understand you correct? Why not simple filter for negative values in the B column and send the visible data to the two Recipients If this is what you want I wiil create a example for you -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Ron de Bruin" wrote in message ... Hi James I read it and reply tomorrow after work Bed time for me now -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... Ron, Column A, cells 1-150 are project numbers that are entered by the user, i.e. 80163, 80176. They are not necessarily in a logical order, but will always be 5 characters in length. Column B, cells 1-150 will be a formula result that compares two other cell values. Therefore man-days allowed MINUS man-days required to give the value in the appropriate cell of column B (either positive or negative). If the cell value is less than 0, the cell colour turns red. For arguments sake man-days allowed would be column C and man-days required column D. The man-days allowed figures (column C) will change very rarely. The man-days required figures (column D) will change, therefore an email sent one week might not need to be sent in three weeks time. Recipients: Will always be the same two people, so they could be defined as "jbloggs...." etc. Sample data: Column A Column B Column C Column D 80163 -15 20 35 80176 15 35 20 80187 0 20 20 80190 -10 20 30 and so on... Therefore the macro should send an email to two recipients (to be specified), for project numbers 80163 and 80190 that say that they have too many man-days allocated to them. Subject header should include the project number to make it easy to know where to amend the data. The email message should include the figure in column B. If in a fortnight, cell B1 (project number 80163) is positive, the macro should re-send the email for project number 80190 (assuming B4 is still negative). Let me know if you still need info. Thanks for the link. I have been looking at your example 2 on http://www.rondebruin.nl/mail/change.htm I am thinking a combination of the two might be the way to go?? -- J "Ron de Bruin" wrote: More info please about the info in the columns Start here(see also example 2) http://www.rondebruin.nl/mail/folder3/message.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "James" wrote in message ... All, I am looking for a macro that sends an email to two recipients based on the cell values in a range. I have a table of 150 rows where a cell value can fall below 0 (or conditional formatting turns it red), and for each row where the value is less than 0 (or is red), send an email with a subject heading which includes the row identification. EG. Cell A1: 80163 Cell B1: -15 Recipients: (to) Joe Bloggs ; (cc) Fred Bloggs Email with the subject heading "80163 - Over allocation" Message: "80163 has been over allocated by 15 man-days" Repeat this for all rows, therefore if B2 is (positive) 15, an email is not sent. If changes were made to other calculations which resulted in B1 becoming positive, I don't want the macro to loop through the entire list again and re-send emails. I would prefer the this re-sending loop to occur every fortnight on a Wednesday. Hope this makes sense! If anyone can help with this, it would be greatly appreciated. James -- J |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Send email based on date value | Excel Programming | |||
can I get excel to send an email based on a cell result? | Excel Discussion (Misc queries) | |||
Automatically Send Email based on query | Excel Programming | |||
Send Email Based on Spreadsheet Criteria | Excel Programming | |||
Using VBA to send email based on form response | Excel Programming |