Originally Posted by event21 Hi - With outlookMail .to="theemailaddress" .htmlBody = htmlBody .attachments.Add ThisWorkbook.Path & "\" & oneSheet.Name & ".xlsx" .Display End With Regards, Event This code will work if the email address is same for all the sheets. But in my case I need to send the mails to different addresses
With outlookMail .to="theemailaddress" .htmlBody = htmlBody .attachments.Add ThisWorkbook.Path & "\" & oneSheet.Name & ".xlsx" .Display End With
There are currently 1 users browsing this thread. (0 members and 1 guests)
View Tag Cloud
Forum Rules
Bookmarks