Hello Macster,
Here is the corrected code...
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Dest As Worksheet
Set Dest = ThisWorkbook.Worksheets("Archive")
Application.EnableEvents = False
If Not Application.Intersect(Range("AB1:AB400"), Target) Is Nothing Then
If Target.Cells(1, Target.Columns.Count).Value = "Yes" Then
Target.Value = ""
Mail_Range_Outlook_Body
Target.EntireRow.Copy Destination:=Dest.Range("a1000").End(xlUp).Offset(1, 0)
Target.EntireRow.Clear
End If
End If
Application.EnableEvents = True
End Sub
Bookmarks