IF just STOPS WORKING
You guys have been so much help, I wonder if you know about Excel Programming
too?
I'm nearly done with this project.
This is where I am.
Every thing works except it sends 3 emails instead of just one because I'm
using "Calculate"
It is a spreadsheet that is unmonitored and linked to an Access database and
refreshes every minute.
Maybe some kind of hack/crack that moves down one cell to "fake" a
SelectionChange? Anyone know how I can do that?
Private Sub Worksheet_Calculate()
If Range("HK2").Value = "YES" Then
Set aOutlook = GetObject(, "Outlook.Application")
Set aEmail = aOutlook.CreateItem(0)
aEmail.Importance = 2
aEmail.Subject = "TEST NOC AGING CALL NUMBER"
aEmail.Body = Range("A2")
aEmail.Recipients.Add "
aEmail.Send
End If
End Sub
|