Procedure dosen't fire up in Application_Startup()

  • Thread starter Thread starter Jan T.
  • Start date Start date
J

Jan T.

Using Outlook 2003 and Windows XP Profesjonal I have tried to have
Outlook fire up a procedure when I open Outlook.

I have used the same code for several other persons and it works fine.
I have changed security settings to Medium as usually. The code in
ThisOutlookSession Private Module starts with

Private sub Application_Startup()
Call CreateMenu
' some other stuff...
End sub


Any idéa why the sub does not fire when Outlook is starting up?

Appriciate any help...

Regards
Jan T.
 
Does a simple macro run on that machine?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Using Outlook 2003 and Windows XP Profesjonal I have tried to have
Outlook fire up a procedure when I open Outlook.

I have used the same code for several other persons and it works fine.
I have changed security settings to Medium as usually. The code in
ThisOutlookSession Private Module starts with

Private sub Application_Startup()
Call CreateMenu
' some other stuff...
End sub


Any idéa why the sub does not fire when Outlook is starting up?

Appriciate any help...

Regards
Jan T.
 
Oh, I found out. By closing Outlook and remove the file
VbaProject.otm, Outlook created a new one for me by default. When I
pasted the procedures into this new file, everything work out fine. It
looks like the file was corrupted.

Thanx anyway for your reply.

Regards
Jan T.
 
Back
Top