try this
Sub Button1_Click()
'save it
ThisWorkbook.Save
'by Norie
Dim OutApp As Object
Dim OutMail As Object
Dim wbTemp As Workbook
Dim strFilename As String
' ThisWorkbook.Worksheets("Sheet2").Copy
ThisWorkbook.Sheets(Array("Weekly Report", "Weekly Overview")).Copy
' set reference to new workbook
Set wbTemp = ActiveWorkbook
' save new workbook so it can be sent as attachment
wbTemp.SaveAs ThisWorkbook.Path & "/" & "Weekly Report" & " " & "and" & " " & "Weekly Overview", FileFormat:=56 'XlFileFormat.xlOpenXMLWorkbook
strFilename = wbTemp.FullName
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
'On Error Resume Next
With OutMail
.To = "aaaa@yahoo.com" & ";" & "bbb@yahoo.com"
.Subject = "whatever..."
.Body = "Hello"
.Attachments.Add strFilename
.display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
wbTemp.Close
Kill strFilename
End Sub
Bookmarks