Visual Basic Error

J

Joe Dean

When I first open Microsoft Word, I receive the following
error: "Compile error in hidden mode: ThisDocument". I
have gone into macros, Visual Basic Editor, and Visual
Scripting to try to fix this, but nothing works. When
this popup window appears, it offers OK, and HELP
buttons. The help button declares that I need to
unprotect the object in order to get it to open. I'd
appreciate any help you could offer.

Thanks!
 
B

Beth Melton

A "compile" error means that there is an error in a macro or add-in
that is attempting to run. The reference to "hidden module" indicates
the macro is in a global template/add-in. Many third-party
applications will create an add-in and place it in the Office\Startup
folder or use a COM add-in (DLL) to integrate their software with
Word.

Go to Tools/Templates and Add-Ins and see if there are any global
templates or add-ins listed. If you find any then chances are they are
located in your Office\Startup folder or Word\Startup folder.

The location of the Word\Startup folder can be found under
Tools/Options/File Locations and the Office\Startup folder will be
located in the installation path for Office.

If you find more than one add-in move them one at a time until you
determine which one is causing the problem.

For additional troubleshooting steps for errors starting/exiting Word
see this article:
http://www.mvps.org/word/FAQs/AppErrors/ProbsOpeningWord.htm


--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
G

g grant

thanks for the help beth i was having a similar problem,
error mesage was compile error in hidden module: Auto
Exec.
found an add in in ofice start up folder was a pdf
template, wasn't sure wher to move it to so i put it in
the office template folder. should i move it some where
else?
thanks again
regards
graeme grant
 
B

Beth Melton

Hi graeme,

It really doesn't matter where you move it as long as it is not in the
Startup folder. :) (I have a folder called "OldStartup" for this
purpose)

I always recommend moving the file instead of deleting it so it can be
placed back in the folder if you find you need it at a later date.

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
Top