Outlook 2007 Events disabled by WMDC -- Fix??

Status
Not open for further replies.
R

Ron Rosenfeld



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
Stop
End Sub
===================

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

Harry Yuan



Hi,

Please set the Macro security to run all macros. Why you want to use Stop in VBA code?

Please comment this line, and see if this VBA code could be called.

Here are some resources about this topic. Wish they could help you.

Application_Startup doesn't seem to work - Outlook 2007.
Application_Startup event not firing.

If you have any concern on this topic, just feel free to follow up.

Regards,

Harry
 
R

Ron Rosenfeld



On Thu, 21 Oct 2010 08:01:56 +0000, Harry Yuan wrote:


Hi,


Please set the Macro security to run all macros.


I had already done that. And the macros run fine EXCEPT when Outlook
is started by WMDC.


Why you want to use Stop in VBA code?


I've used it for troubleshooting auto open and startup macros, since
it is an easy way to set a break point for these kinds of event
macros. In this case, it was just to see if the code was being run.


Please comment this line, and see if this VBA code could be called.
Here are some resources about this topic. Wish they could help you.
Application_Startup doesn't seem to work - Outlook 2007 <http://www.eggheadcafe.com/software/aspnet/35374643/applicationstartup-doesnt-seem-to-work--outlook-2007.aspx>.
Application_Startup event not firing <http://www.devnewsgroups.net/officedev/t26535-application-startup-event-not-firing.aspx>.


Neither is applicable to my problem. But thanks as it added to my
knowledge.
 
Status
Not open for further replies.
Top