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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,514
Messages
6,125,263
Members
449,219
Latest member
daynle

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