Thank you! This would appear to be perfect except that I'm not getting it to work.
I've added the code to ThisOutlookSession, closed the Visual Basic editor, closed Outlook, and answered "Yes" to saving the session. I also went to Macro Security and enabled all macros. It did not work (I did not receive a prompt and an improperly formatted email was sent). I checked Visual Basic and the code was where it was supposed to be. I then set the Macro Security to "Notifications for all macros" and tried testing again (so sending would fail). I did not receive a prompt for the macro running. This leads me to believe the macro is not being triggered for some reason.
I'm at a loss as to why the macro is not running/working. Any ideas?
Thanks again,
Andrew
UPDATE:
I added the following code to your macro and did not receive a prompt when sending an email without an attachment. It does seem the macro is not being triggered.
Code:
If Item.Attachments.Count = 0 Then
MsgBox ("There are no attachments in this email.")
End If
NEW UPDATE:
I removed my added code. When I closed Outlook I received a new prompt to save the session (I didn't capture the message, but it was not about ThisOutlookSession.) When I reopened Outlook I was prompted to enable macros and now it works!
Whoohoo! Now I need to figure out how to make this work the first time on another person's PC.
Thank you!