Newmail Event doesn't fire

Joined
Oct 25, 2005
Messages
1
Reaction score
0
Hi. I am a beginner.

I have implemented the following code in ThisOutlookSession, Module, & Class and none will fire when a new message is received. FYI: other code works fine.


Dim WithEvents myOlApp As Outlook.Application

Sub Initialize_handler()
MsgBox "stop"
Set myOlApp = CreateObject("Outlook.application")
End Sub

Private Sub myOlApp_NewMail()
MsgBox "stop"
Call SyncSchedule
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top