It seems that if Outlook 2007 is started up by the Windows Mobile
Device Center, Outlook Events are disabled.
I have an ItemSend event in ThisOutlookSession that has been working
intermittently. I have also tried using it in a Class module with
similar results. (It changes the Subject line depending on the
original Subject line contents).
For testing purposes, I added a Startup event to ThisOutlookSession.
Private WithEvents myOLApp As Outlook.Application
Private Sub Application_Startup()
Set myOLApp = Outlook.Application
And then, when the VBA code Stops, I place a break point in the
ItemSend event code.
If I startup Outlook normally, the Stop statement gets executed, and
my subsequent ItemSend event code also seems to be triggered normally.
However, if I start the Windows Mobile Device Center, which syncs with
my Dell Axim, it will, in turn, start up Outlook. Although Outlook
starts up, the Stop statement does NOT get executed, and subsequent
ItemSend events do NOT trigger anything.
Is there anything I can do to correct this? Or must I remember to
always start Outlook first?