email from excell based on cell value when updated

landonh

New Member
Joined
Sep 28, 2010
Messages
10
The pc user does not have internet access so I have to use a SMTP command line program [ sendemail ] is being used.

I need to send an email when a cell value is updated and meets criteria such as >600.

Any help will be greatly appreciated.

I am a good copy and paster with minimal programing experience.

Thanks
LAndon:biggrin:
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If the cell is being updated by being actively changed by someone typing a value in to it or pasting a value in to it, you need to use the Worksheet_Change event:-
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
 
  If Range("A1") > 600 Then
    ' invoke message sending routine here
  End If
 
End Sub
If it's being updated because it contains a formula and the worksheet has been recalculated, use the Worksheet_Calculate event:-
Code:
Private Sub Worksheet_Calculate()
 
  If Range("A1") > 600 Then
    ' invoke message sending routine here
  End If
 
End Sub
Let me know if you don't know where to put this code.

As for the 'message sending routine', you sound as though you have that covered - yes?
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top