Application_ItemSend not firing even with low security

Status
Not open for further replies.
R

Remou

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
 
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

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
bmtjedi Set objApp = Application Not Working in O365-32bit Using Outlook 1
avant-guvnor Outlook.Application now produces error Outlook VBA and Custom Forms 5
C Custom Application Form send Email to Another User Using Outlook 1
N Select Existing BCM Business Contact in C# application Using Outlook 0
S Using "start application" rule action Using Outlook 2
smokiibear windows security mail application not accepting username and password Using Outlook 0
Y VBA - Application Filedialog Hidden Behind Outlook Using Outlook 0
T Synchronize outlook appointments through web application. Using Outlook 1
O Outlook 2010 Stops Working When Accounting Application Tries To Send eMail Using Outlook 4
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
K Handling application.quit event Outlook VBA and Custom Forms 8
M VSTO C#: How do I declare an application scope variable? Outlook VBA and Custom Forms 2
E Turn application visibility off Outlook VBA and Custom Forms 2
T Run application from cmd button Outlook VBA and Custom Forms 5
D Outlook 2007 Will Not Send Mail From C# Application Outlook VBA and Custom Forms 7
P Supporting threads in Outlook VBA application Outlook VBA and Custom Forms 1
R vba instantiated internetExplorer.application differs from user la Outlook VBA and Custom Forms 1
K How to disconnect Application.COMAddIns.Item().Object? Outlook VBA and Custom Forms 4
D outlook.exe application error - breakpoint has been reached. fix? BCM (Business Contact Manager) 1
P Drag and Drop mails from Outlook to Clarion6 Application Outlook VBA and Custom Forms 5
J Office application does not match advisory. Why? BCM (Business Contact Manager) 3
D Application.ActiveInspector() is Null on Ribbon Load Outlook VBA and Custom Forms 1
D Application.ActiveInspector().CurrentItem Returns Wrong(Old) Value Outlook VBA and Custom Forms 3
L RE: BCM Office Application Issue BCM (Business Contact Manager) 1
R Can calendar be displayed in another Office application? Outlook VBA and Custom Forms 1
E When more than "ItemSend" is needed Using Outlook 5
B Looking for email address under ItemSend event Outlook VBA and Custom Forms 6
E Properties added to MailItem in ItemSend event visible to recipien Outlook VBA and Custom Forms 1
P ItemSend event not firing Outlook VBA and Custom Forms 2
T Hooking up the ItemSend Event... Outlook VBA and Custom Forms 1
P Outlook 2013 reminders firing late, in batches Using Outlook 0
N Combobox in outlook add ons toolbar not firing event on main window resized Using Outlook 3
M Item_Send event is not firing Outlook VBA and Custom Forms 17
Z Command button no longer firing after sending custom form over ema Outlook VBA and Custom Forms 1
Q Custom Form and firing Revise Contents button Outlook VBA and Custom Forms 9

Similar threads

Back
Top