• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1229
  • Last Modified:

Getting MS Visual Basic error-"Compile error in hidden module; This Outlook session" after being upgraded to office 2007

Upgraded an end user from Office 2003 to Office 2007. Outlook works except an error message pops up "Compile error in hidden module; This Outlook session".
1 Solution
Brian WithunCommented:
There are apparently some VBA macros inside Outlook.  You can open the VBEditor and look in the project listing for any included modules.

Go into each of the modules in VBE and manually compile them.  The one that is causing the startup error will fail to compile, and it may show you the line that is failing.

I think that it ordinarily opens VBE on this error anyway, unless the VBA mdoule is protected from viewing.  If that is the case you'll need to enter the password in VBE before you can see the source code line causing the problem.

I wouldn't expect that some code would suddenly fail to compile in 2007 which had compiled in 2003, but it's possible I guess.  More likely is that the error has always been there, but for whatever reason, you're only hearing about it now.

Brian Withun
Patrick MatthewsCommented:
Hello FW_Helpdesk,

Check the references in your VBA project, and see if any are listed as missing.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now