Hi,
try this, it works for me.
Sub Button1_Click()
'Author Rory
'http://www.thecodecage.com/forumz/microsoft-excel-forum/212685-delete-email-sent-folder-deleted-folder.html
Dim olApp As Object
Set olApp = CreateObject("Outlook.Application")
With olApp.CreateItem(0)
.Subject = "Automail: Changes detected in " & ThisWorkbook.Name
.to = "azx@gmail.com"
.Body = "delete the email from Sent items"
'Read receipts turned of
.ReadReceiptRequested = False
.DeleteAfterSubmit = True
'.Send
.display
End With
Set olApp = Nothing
End Sub
Bookmarks