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

Events no longer firing



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 8th 07, 05:03 PM posted to microsoft.public.outlook.program_addins
Guest
 
Posts: n/a
Default Events no longer firing

Hi,

I am a newbie; I wrote the following code as VBA in Outlook:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If (Not Item.Class = olMail) Then Exit Sub

If (Item.Subject = "") Then
answer = MsgBox("Do you want to send the message without entering
a subject", vbYesNo, vbSystemModal)
If (answer = vbNo) Then
Cancel = True
End If
End If
End Sub


The code worked fine "till" I restarted outlook. It's weird that it's no
longer working. Can anyone give me some ideas? I am not using Exchange
Server. The code had been written for "ThisOutlookSession." Any help will
be highly appreciated.

/jaywalker
  #2  
Old December 8th 07, 06:19 PM posted to microsoft.public.outlook.program_addins
Muhammad Ali Shah
external usenet poster
 
Posts: 1
Default Events no longer firing

OK; I got it. VBA isn't loading. Setting the Macro security to Medium
prompted me whether I want to run macros or not. If I say Yes,
everything works fine.

,
says...
The code worked fine "till" I restarted outlook. It's weird that it's no
longer working. Can anyone give me some ideas? I am not using Exchange
Server. The code had been written for "ThisOutlookSession." Any help will
be highly appreciated.

 




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
VBScript events not firing on edit Juls Outlook - Using Forms 2 March 19th 07 05:15 AM
Outlook Reminder Events - not firing [email protected] Add-ins for Outlook 0 August 3rd 06 11:56 PM
AdvancedSearchComplete Even Not Firing Dav Banks Outlook and VBA 8 June 8th 06 10:18 PM
Inspector Close events not firing.. Sanjay Add-ins for Outlook 1 May 22nd 06 07:18 PM
How can I keep calendar events longer than 6 months? John Pero Outlook - Calandaring 3 March 24th 06 07:32 PM


All times are GMT +1. The time now is 09:05 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.