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 / Mailmerge and Fax / May 2005

Tip: Looking for answers? Try searching our database.

"Can't find project" error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zSplash - 06 May 2005 00:11 GMT
I'm using mailmerge.  While merging, I get the following error:
       "Compile error.  Can't find project or library"

I stop the code and see a missing reference to a temporary file ("MISSING:
~WRC003.tmp").  I delete that reference, and run the code.  What's the deal
with this temp reference?

Then, after the mailmerge has occurred, I get another error:
   "Run-time error: 424.  Object required."

I stop the code and see that the template (in the merged doc) is not checked
in Tools | References, although it is visible.  The template is visibly
installed in Word.

If I manually check the template, the code runs fine, but how can I
programmatically check it?  BTW, I have already programmatically "installed"
the addin in both the master document and the mailmerge.  I had assumed
installation would check the box.

TIA
Cindy M  -WordMVP- - 20 May 2005 14:09 GMT
Hi ZSplash,

> Then, after the mailmerge has occurred, I get another error:
>     "Run-time error: 424.  Object required."
[quoted text clipped - 7 lines]
> the addin in both the master document and the mailmerge.  I had assumed
> installation would check the box.

You need to use the AttachedTemplate property on the merge result document
you've just generated. For some reason, the document knows it should be
attached to the same template the original main merge document was attached
to, but the connection is incomplete.

> I'm using mailmerge.  While merging, I get the following error:
>         "Compile error.  Can't find project or library"
>  
> I stop the code and see a missing reference to a temporary file ("MISSING:
> ~WRC003.tmp").  I delete that reference, and run the code.  What's the deal
> with this temp reference?

No idea where this is coming from. I can only imagine that, when you were
setting the references for the original code or perhaps for something in the
main merge document, that a reference was set to a temp file. Try opening the
VBA project, checking the references, then saving and closing it (NOT while
the macro is actually running).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :-)
 
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.