Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2003

Tip: Looking for answers? Try searching our database.

Setting reminder on mail send, worked yesterday, not today

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rachelle - 17 Oct 2003 13:37 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.