Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Word Template in Startup folder loses dll references

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marceepoo - 30 Aug 2006 14:50 GMT
A Word template located in the User's Startup folder repeatedly loses
references to DLLs.  This causes macros to fail to run, and to generate the
following dialogue box error message: "Compile error: Can't find project or
library".  For example, when the ("Compile error:...") dialog box error
message appears, the word "Left" is highlighted on the following line:
            strPathTest = Left(strPathDoc, 8)
Each time this occurs, I have to open VBA, click on tools, references, and
then tried to figure out which DLL file got disconnected this time.

Does this mean that the template is corrupt?
What causes this?  Is there a way to prevent it from happening?
Should copy all the macros into a new template, and export all the forms
from the old template and copy them into the new template?
Does anyone have any suggestions?  

Thanks for any help.                       Marceepoo
Cindy M. - 31 Aug 2006 12:27 GMT
Hi Marceepoo,

> A Word template located in the User's Startup folder repeatedly loses
> references to DLLs.  This causes macros to fail to run, and to generate the
[quoted text clipped - 9 lines]
> Should copy all the macros into a new template, and export all the forms
> from the old template and copy them into the new template?

Hmmm. The DLL in question would be the basic one for VBA. Searching the
knowledge base turns up the following, which supports your guess that
something may be corrupted.

http://support.microsoft.com/kb/244788/en-us

If the problem is happening with only the one template then yes, try exporting
the macros AND the forms using File/Export in the VB Editor. Create a new
template and use File/Import to bring them in.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Marceepoo - 31 Aug 2006 13:50 GMT
Is it annoying to you MVPs if I (waste your time by) reply(ing) with a "Thank
you"?
                          marceepoo

> A Word template located in the User's Startup folder repeatedly loses
> references to DLLs.  This causes macros to fail to run, and to generate the
[quoted text clipped - 12 lines]
>
> Thanks for any help.                       Marceepoo
Cindy M. - 31 Aug 2006 15:28 GMT
Hi marceepoo,

> Is it annoying to you MVPs if I (waste your time by) reply(ing) with a "Thank
> you"?

Nope, no it's not annoying :-) At least, not to those of us here in the
office-related newsgroups. We like having confirmation that what we suggested
was (more or less) on target and reached the person asking the question. It also
lets others, looking for help on the same problem, know the information was
helpful.

   Cindy Meister

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.