Sub Send_Email()
Dim sArr(), i As Long, tmp As String, TmpName As String
With Sheets("Mail")
sArr = .Range("B3", .Range("B" & Rows.Count).End(3)).Resize(, 3).Value
End With
For i = 1 To UBound(sArr)
If UCase(sArr(i, 3)) = "Y" Then
tmp = UCase(sArr(i, 1))
Sheets(tmp).Copy
With ActiveWorkbook
TmpName = ThisWorkbook.Path & "\" & tmp & ".xlsx"
.SaveAs ThisWorkbook.Path & "\" & tmp, 51
.Close
End With
With CreateObject("Outlook.Application")
.Session.Logon
With .CreateItem(0)
.To = sArr(i, 2)
.Subject = "AYZ"
.Body = "Dear " & vbNewLine & vbNewLine
.Attachments.Add TmpName
.Display
End With
End With
Kill TmpName
End If
Next
End Sub