Sub sendmail()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = Sheets("自動寄郵件").Range("B3")
.CC = ""
.Subject = ActiveWorkbook.Name
.body = "試算表自動寄郵件"
.Attachments.Add ActiveWorkbook.FullName
.Send
End With
End Sub