So far, my only solution is to remove and then add the reference on the computer.
There's two major problems with this:
1. I have to set Macro Security to trust the VBA Project Object Model
2. This essentially changes my code, which means that a digital certificate is no longer valid after this is done. Meaning, I'd have to either set macros to always be enabled or force users to enable macros every time they open a file, which users hate to do.
Here's the code to remove and then add the ActiveX Data Objects 2.5 Reference.
Bookmarks