The "Missing Object" error is all too familiar to me. Every Office component has that error. Often, error 1004.
I cannot tell you where your error is, but I have worked at different times using Word, Excel, and Outlook objects from Access. I can tell you that it is common for a multi-part qualified object reference to get caught when one of the qualifiers suddenly goes out of scope or is deresolved.
Imagine something like WordAppObj.Documents(x).Paragraphs

.Range ... so you create a stand-in object for the document (using a SET verb) to reduce the size of the typed referencing sequence - but then somehow one of the objects in the stand-in's definition is no longer there because you forgot to declare something Public and you just went out of scope, or because the code closed one of the qualifier components in the middle of the long qualifier sequence. For me, Excel was the worst about doing this, but Word was a close second.
Thanks for the notes. I don't think that's it. But I think I figured it out, as well as to why it's only happening on certain machines and only sometimes.
The process involves opening Word, creating a doc, closing Word, then doing the same with another doc.
These were previously two standalone functions (one for each doc) which needed to be combined in a set, along with a couple of Access reports (exported to PDF).
So, when I created it, I just called each function, leaving the close Word at the end alone. Didn't think it was a big deal, even though it took an extra second or so compared to leaving Word open between docs.
What I
think is happening (not yet confirmed) is that sometimes Word is still closing after the first doc when the second procedure starts. It looks for an existing instance of Word using GetObject, finds the instance that's still closing, and sets a reference to it. Then, when it goes to actually use the object variable, that instance of Word is not longer open, and, hence, the error.
The error
always happens with the second doc, never with the first. And the fact that it only happens on certain machines makes sense if those machines' hard drives are slower or there's some other factor involved. And it only happened once in a while, meaning most of the time Word finished closing before the GetObject call.
Previously this was happening with about 3 or 4 machines (out of about a dozen), and so I put a bunch of DoEvent calls in there. That stopped the error on all but one machine. So some reason that machine still occasionally got the error, even with the DoEvent calls in there.
So I changed the code to leave Word open between the docs. If my theory is correct, then the error should go away completely.
The strange thing is that when it happened, it seemed to always happen after the process was run the 2nd or 3rd time; never the first time. Strange.
Anyway, that's where it stands. We'll see what happens.
The reason I thought this was a system error, as noted in a previous reply, was because I put section labels in all the relevant routines to note the section of code it was happening in, and modified the message box and logged the error. But I was getting the generic error message box.
Turns out I didn't modify THE MAIN ROUTINE for generating the Word docs!! That routine has been in place for about 10 years, and I didn't think it would be the problem. So I didn't both annotating it. Turns out, that's where it seems the problem was. D'oh!