Sub email()
'
' email Macro
' send email
'
' Keyboard Shortcut: Ctrl+Shift+E
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = "name@company"
.CC = "name@company" And "name@company"
.BCC = ""
.Subject = "Inventory Age Test"
.Body = "Today's Inventory"
.Attachments.Add ActiveWorkbook.FullName
'You can add other files also like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Bookmarks