Solved

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

Posted on 2009-05-12
2
1,199 Views
Last Modified: 2012-05-06
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".
0
Comment
Question by:FW_Helpdesk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Expert Comment

by:Brian Withun
ID: 24364350
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
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 24366103
Hello FW_Helpdesk,

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

Regards,

Patrick
0

Featured Post

Office 365 Training for Admins

Learn how to provision tenants, synchronize on-premise Active Directory, and implement Single Sign-On with these master level course.  Only from Platform Scholar

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question