I am getting there but here is my current situation.
The worksheet_change event will work with this abbreviated code.
Private Sub Worksheet_Change(ByVal target As Range)
'***************************************************
' Add next group here
' [Line B1] Send Excel e-mail and output the result.
Dim ZedE11
Dim commandE11
'only run this code if E11 has changed ()
Set rngUpdate = Application.Intersect(target, Range("E11"))
If Not rngUpdate Is Nothing Then
If Range("E11").Value > ("600") Then
I need for the code to happen in the calculated method due to a formula in recalculating the data.
The non-working edition is as follows and has some thing to due with the calculated event.
Private Sub Worksheet_Calculate(ByVal target As Range)
'***************************************************
' Add next group here
' [Line B1] Send Excel e-mail and output the result.
Dim ZedE11
Dim commandE11
'only run this code if E11 has changed ()
Set rngUpdate = Application.Intersect(target, Range("E11"))
If Not rngUpdate Is Nothing Then
If Range("E11").Value > ("505") Then
I get a compile error:
Procedure declaration does not match description of event or procedure having the same name
The code works in the worksheet_change but not in the worksheet_calculate
The worksheet_change event will work with this abbreviated code.
Private Sub Worksheet_Change(ByVal target As Range)
'***************************************************
' Add next group here
' [Line B1] Send Excel e-mail and output the result.
Dim ZedE11
Dim commandE11
'only run this code if E11 has changed ()
Set rngUpdate = Application.Intersect(target, Range("E11"))
If Not rngUpdate Is Nothing Then
If Range("E11").Value > ("600") Then
I need for the code to happen in the calculated method due to a formula in recalculating the data.
The non-working edition is as follows and has some thing to due with the calculated event.
Private Sub Worksheet_Calculate(ByVal target As Range)
'***************************************************
' Add next group here
' [Line B1] Send Excel e-mail and output the result.
Dim ZedE11
Dim commandE11
'only run this code if E11 has changed ()
Set rngUpdate = Application.Intersect(target, Range("E11"))
If Not rngUpdate Is Nothing Then
If Range("E11").Value > ("505") Then
I get a compile error:
Procedure declaration does not match description of event or procedure having the same name
The code works in the worksheet_change but not in the worksheet_calculate