Hi
I have a cell "H7" which changes from FALSE to TRUE if a check box is ticked, upon doing this i want to email an address located in "L7"
I can get it to do this but only by going into the cell and pushing enter, to come out of the cell, i need it to do it without having to go into the cell, what is wrong in this code?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("H7")) Is Nothing Then Mail
End Sub
Sub Mail()
Dim OutlookApp As Object
Dim Mess As Object, Recip
Recip = [L7].Value
Set OutlookApp = CreateObject("Outlook.Application")
Set Mess = OutlookApp.CreateItem(olMailItem)
With Mess
.Subject = "Task Completed"
.Body = "XXXXXX XXXXXX has completed task" & [B7].Value
.To = Recip
.Display
.Send
End With
End Sub
Also the email doesnt pick up & [B7].Value
Any one got an ideas?
Thanks
Dan
Bookmarks