Home |
Search |
Today's Posts |
#1
|
|||
|
|||
"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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help! I'm getting error messages too much-can't open Resume Wizard | Microsoft Word Help | |||
How do I find an error message meaning? | Microsoft Word Help | |||
Error Message: "C:\~~\~~~_virtual_file_~~~.olk Is Being Used ..." | Mailmerge | |||
Find and Replace anomaly | Microsoft Word Help | |||
How do I find the reason for error in top margin on new page? | Page Layout |