View Single Post
  #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 :-)