A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Can't find project" error



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2005, 12:11 AM
zSplash
external usenet poster
 
Posts: n/a
Default "Can't find project" error

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


  #2  
Old May 20th, 2005, 02:10 PM
Cindy M -WordMVP-
external usenet poster
 
Posts: n/a
Default

Hi ZSplash,

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.

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 :-)

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find project start and end dates in a DB with many different proje AceWriter01 Worksheet Functions 3 April 1st, 2005 03:58 AM
Error 3011 - Cannot Find Object Allen General Discussion 6 February 1st, 2005 02:39 PM
Where can I find Error Code explanations gerrygjk General Discussion 2 January 26th, 2005 10:13 PM
Many to many reationship design? Dave Database Design 4 January 18th, 2005 11:11 PM
Signing a VBA mde/mdb Access 2003 John Buckett General Discussion 3 July 3rd, 2004 09:14 PM


All times are GMT +1. The time now is 02:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.