Procedure dosen't fire up in Application_Startup()

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

Sue Mosher [MVP-Outlook]

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

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.
 

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