I have a Word mail merge that I invoke from Access VBA. I run it at least once per day.
Recently it started failing on this statement: Set loWd = New Word.Application
with this error message:
Run-time error ‘-2147221231 (80040111)’:
Automation error
ClassFactory cannot supply requested class
The cure for me is to uninstall Word, then to re-install Word. Then the VBA mail merge works fine.
I am curious about the cause of the error. I have LOTS of software installed, and so far I have not been able to identify a cause and effect relationship for the failures. I wold love to fix it so it doesn’t keep breaking on me.
If anyone has experienced this, or can enlighten me, I would be most grateful!