I am constantly forgetting to add attachments that need to
go out in e-mail, so I built a little reminder to pop-up
every time I send mail to ask me If I had added my
attachments.
The code is...
Private Sub Application_ItemSend(ByVal Item As Object,
Cancel As Boolean)
Prompt$ = "Have you added any attachments that need to
go?"
If MsgBox(Prompt$, vbYesNo + vbQuestion, "Sample") =
vbNo Then
Cancel = True
End If
End Sub
It worked fine yesterday when I added it, but today it is
not firing. I tried adding it on other events and those
aren't firing either. Is there some setting to allow VB
to run or not?
Sue Mosher [MVP] - 31 Oct 2003 06:00 GMT
Check your macro security lately? Tools | Macros | Security. I usually keep mine at Medium so I'll be certain to get a prompt when VBA loads.

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> I am constantly forgetting to add attachments that need to
> go out in e-mail, so I built a little reminder to pop-up
[quoted text clipped - 17 lines]
> aren't firing either. Is there some setting to allow VB
> to run or not?