Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that shows sales committments as Firm or Pending. The
spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The second change event is for a formula
http://www.rondebruin.nl/mail/change.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... I have a spreadsheet that shows sales committments as Firm or Pending. The spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ron--thanks so much for responding. Yes, I can see the 2nd event is for a
formula, but I'm not sure what to replace the line If Range("a1".Value200 Then YourMacroName with. I want it the email sent every time someone changes a status to firm, but only once since once its firm its done. I thought I'd use a counter cell as my change event, but maybe I don't need it. The formula in this cell is =COUNTIF(G3:G13,"FIRM"). I want an email sent only once each time a row's status is changed to firm. The email will simply say "please check sales sheet for recent status changes". Am I making this too complicated? "Ron de Bruin" wrote: The second change event is for a formula http://www.rondebruin.nl/mail/change.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... I have a spreadsheet that shows sales committments as Firm or Pending. The spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Pam
G3:G13 Do they manual change the cells in this range ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... Hi Ron--thanks so much for responding. Yes, I can see the 2nd event is for a formula, but I'm not sure what to replace the line If Range("a1".Value200 Then YourMacroName with. I want it the email sent every time someone changes a status to firm, but only once since once its firm its done. I thought I'd use a counter cell as my change event, but maybe I don't need it. The formula in this cell is =COUNTIF(G3:G13,"FIRM"). I want an email sent only once each time a row's status is changed to firm. The email will simply say "please check sales sheet for recent status changes". Am I making this too complicated? "Ron de Bruin" wrote: The second change event is for a formula http://www.rondebruin.nl/mail/change.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... I have a spreadsheet that shows sales committments as Firm or Pending. The spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yes, they do. So I should then be able to use the manual example and skip
the counter cell, correct? With this, how does vb know to execute the send the email only once? In other words, once a row is changed to FIRM it will never need the email sent again. "Ron de Bruin" wrote: Hi Pam G3:G13 Do they manual change the cells in this range ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... Hi Ron--thanks so much for responding. Yes, I can see the 2nd event is for a formula, but I'm not sure what to replace the line If Range("a1".Value200 Then YourMacroName with. I want it the email sent every time someone changes a status to firm, but only once since once its firm its done. I thought I'd use a counter cell as my change event, but maybe I don't need it. The formula in this cell is =COUNTIF(G3:G13,"FIRM"). I want an email sent only once each time a row's status is changed to firm. The email will simply say "please check sales sheet for recent status changes". Am I making this too complicated? "Ron de Bruin" wrote: The second change event is for a formula http://www.rondebruin.nl/mail/change.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... I have a spreadsheet that shows sales committments as Firm or Pending. The spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Pam
Use this then, no need for the formula cell. Be sure that the macro name = YourMacroName Private Sub Worksheet_Change(ByVal Target As Range) If Not Application.Intersect(Range("G3:G13"), Target) Is Nothing Then If LCase(Target.Value) = "firm" Then Call YourMacroName End If End If End Sub -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... yes, they do. So I should then be able to use the manual example and skip the counter cell, correct? With this, how does vb know to execute the send the email only once? In other words, once a row is changed to FIRM it will never need the email sent again. "Ron de Bruin" wrote: Hi Pam G3:G13 Do they manual change the cells in this range ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... Hi Ron--thanks so much for responding. Yes, I can see the 2nd event is for a formula, but I'm not sure what to replace the line If Range("a1".Value200 Then YourMacroName with. I want it the email sent every time someone changes a status to firm, but only once since once its firm its done. I thought I'd use a counter cell as my change event, but maybe I don't need it. The formula in this cell is =COUNTIF(G3:G13,"FIRM"). I want an email sent only once each time a row's status is changed to firm. The email will simply say "please check sales sheet for recent status changes". Am I making this too complicated? "Ron de Bruin" wrote: The second change event is for a formula http://www.rondebruin.nl/mail/change.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Pam M" wrote in message ... I have a spreadsheet that shows sales committments as Firm or Pending. The spreadsheet is used by several people who can change the status of a committment at any time. I have a count field that counts the number of Firm Committments, so when a committment changes from Pending to Firm, the counter obviously changes. I would like to send an standard email automatically to recipients each time the counter changes. I looked at Ron de Bruins example where the cell value is 200. the macro looks like it will work but I would need help in adapting the change event where the target cell contains a formula. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Send worksheet as HTML email | Excel Discussion (Misc queries) | |||
Macro to send worksheet via email | Excel Discussion (Misc queries) | |||
send excel worksheet using email | Excel Discussion (Misc queries) | |||
Send an email to a list of emails in a worksheet | New Users to Excel | |||
Send Worksheet in Email | Excel Programming |