A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ItemSend stops working



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 14th 09, 05:40 PM posted to microsoft.public.outlook.program_addins
Joshua Garrett
external usenet poster
 
Posts: 1
Default ItemSend stops working

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...view-tips.aspx
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
... Outlook 2003 stops working when I open it up. Graham Outlook - Installation 1 January 17th 09 04:02 PM
vCard suddenly stops working DAC8068 Outlook - Using Contacts 0 June 6th 07 04:54 PM
Outlook 2007 stops working on Vista Y.A Outlook - Installation 10 March 31st 07 02:46 AM
Calendar stops working easouza Outlook - Calandaring 1 February 23rd 07 05:50 AM
POP3 stops working Baga Outlook - General Queries 6 August 13th 06 07:46 PM


All times are GMT +1. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.