Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to have excel send an email if a value of a cell exceeds a limit - can
it be done? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H1" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target If .Value 10 Then ActiveWorkbook.SendMail ", _ "Some subject" End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "rasty" wrote in message ... I want to have excel send an email if a value of a cell exceeds a limit - can it be done? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
send wkbk as an email attachment with an email address copied from | Excel Discussion (Misc queries) | |||
how do i can send a information of cell automaticaly via email? | New Users to Excel | |||
body of email disappears when I send an email from Excel | Excel Discussion (Misc queries) | |||
send email from cell contents | Excel Discussion (Misc queries) | |||
How do I build a feature into a cell that would send an email rem. | Excel Worksheet Functions |