jerry.rozario
New Member
- Joined
- Dec 22, 2010
- Messages
- 19
- Office Version
- 365
- Platform
- Windows
Hello,
I have been using the code below to send emails to different individuals. However, since last week, all emails have been bouncing back. Although the "send" button shows that the email has been sent, I receive undeliverable messages. Additionally, an error message pops up when I try to select a different email address from the dropdown menu after sending one email. The only solution is to close the workbook and reopen it, which is annoying and time-consuming. I wish I can attached the entire workbook along with the error messages, If there is a way to attach the entire workbook for your testing please let me know. Please help me to solve this issue.
I have been using the code below to send emails to different individuals. However, since last week, all emails have been bouncing back. Although the "send" button shows that the email has been sent, I receive undeliverable messages. Additionally, an error message pops up when I try to select a different email address from the dropdown menu after sending one email. The only solution is to close the workbook and reopen it, which is annoying and time-consuming. I wish I can attached the entire workbook along with the error messages, If there is a way to attach the entire workbook for your testing please let me know. Please help me to solve this issue.
VBA Code:
Sub Send_Email_With_Snapshot()
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Email")
Dim lr As Long
lr = sh.Range("A" & sh.Rows.Count).End(xlUp).Row
sh.Range("A1:G1" & lr).Select
With Selection.Parent.MailEnvelope.Item
.To = sh.Range("I6").Value
.Subject = sh.Range("I7").Value
'.Attachments.Add ""
.Send
End With
MsgBox "Email Sent"
End Sub