Reply
 
Thread Tools Display Modes
  #1   Report Post  
zSplash
 
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   Report Post  
Cindy M -WordMVP-
 
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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! I'm getting error messages too much-can't open Resume Wizard LizLB Microsoft Word Help 0 May 3rd 05 01:46 AM
How do I find an error message meaning? psenec Microsoft Word Help 2 March 17th 05 11:29 PM
Error Message: "C:\~~\~~~_virtual_file_~~~.olk Is Being Used ..." Markus Mailmerge 1 January 27th 05 04:31 PM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 06:47 PM
How do I find the reason for error in top margin on new page? Reliz Page Layout 1 December 30th 04 08:10 PM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"