PC Review


Reply
Thread Tools Rate Thread

Application_ItemSend not firing even with low security

 
 
Remou
Guest
Posts: n/a
 
      30th Dec 2009
The code below does not fire in Outlook 2010 when I send an email even when I
set the macro level to no warnings and restart Outlook. I can step through
and run other code. Outlook is not set as my default mail program.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
MsgBox "Hi"
End Sub



 
Reply With Quote
 
 
 
 
Remou
Guest
Posts: n/a
 
      6th Jan 2010
The problem was that I had installed Outlook 2010 after Outlook 2000, as far
as I can tell, so the library referenced was Outlook 9.0 (msoutl9.olb),
rather than Outlook 14.0 (msoutl.olb). I renamed
C:\Users\%User%\AppData\Roaming\Microsoft\Outlook\VbaProject.OTM to
VbaProject.OLD and this appears to have sorted everything out.


"Remou" wrote:

> The code below does not fire in Outlook 2010 when I send an email even when I
> set the macro level to no warnings and restart Outlook. I can step through
> and run other code. Outlook is not set as my default mail program.
>
> Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
> MsgBox "Hi"
> End Sub
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application_ItemSend stopped working wouter10 Microsoft Outlook VBA Programming 0 23rd Dec 2010 03:44 PM
Application_ItemSend not being hit ewgoforth Microsoft Outlook VBA Programming 0 31st Jul 2008 04:48 PM
Application_ItemSend not working bierlyt@gmail.com Microsoft Outlook 5 17th Oct 2006 12:54 AM
Sub Application_ItemSend behavior MWE Microsoft Outlook VBA Programming 0 2nd Jun 2004 07:46 PM
Application_ItemSend BCC to self EFL Microsoft Outlook VBA Programming 0 20th May 2004 01:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 PM.