Help!

ItemSend stops working

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  finding your posts  
Author Message
Joshua Garrett
External


Since: Oct 14, 2009
Posts: 1



PostPosted: Wed Oct 14, 2009 9:40 am    Post subject: ItemSend stops working
Archived from groups: microsoft>public>outlook>program_addins (more info?)

I've written an ItemSend macro that works great, but occasionally it completely stops responding when an email is sent. Sometimes it's when I first launch Outlook, so it doesn't seem to be a problem that necessarily happens after use. The first part of the macro is very simple, and it fails as well when this happens:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)


If Len(Trim(Item.Subject)) = 0 Then
If MsgBox("This message has no subject. Are you sure you want to send this message?", vbYesNo + _
vbQuestion + vbMsgBoxSetForeground, "Send Message") = vbNo Then
Cancel = True
End If
End If

The macro is certified with selfcert.exe so I don't think it's a security problem. It's also pretty rare, but when it happens it causes problems.

Any help will be greatly appreciated!

EggHeadCafe - Software Developer Portal of Choice
Job Interview Tips
http://www.eggheadcafe.com/tutorials/aspnet/e02269b2-e95b-4f63-a964-64...e79512e
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum