Hi all,
I have the following commonly used macro to email a workbook via outlook:
however it has stopped working for me and I'm wondering if anyone has any ideas why this might be?![]()
Sub Send_Email_Current_Workbook() ThisWorkbook.Save Dim OutApp As Object Dim OutMail As Object Set OutApp = CreateObject("Outlook.Application") OutApp.Session.Logon Set OutMail = OutApp.CreateItem(0) On Error Resume Next With OutMail .To "jfarr3ll@XX.com" .Subject = "Timelines Spreadsheet Updated - Subject" .Body = "Please see attached the updated Timelines Spreadsheet for your reference" .Attachments.Add ActiveWorkbook.FullName .Send End With On Error GoTo 0 Set OutMail = Nothing Set OutApp = Nothing MsgBox "email sent" End Sub
The code worked fine a few weeks ago, but now goes through the process to the end (msgbox pops up), but doesn't seem to send any email.
Bookmarks