I’ve been adding code to my VBA project in Word 2007 for several hours, having added a couple hundred lines of code. When I tested, I got an error “Bad DLL calling convention”. There are no DLL calls in the code, no DLL references added to the template.
The code stops on the first of several near identical Subs. The code I added today involved variations on the Sub; but it’s the first one that gets called that seems to be the problem.
I had a backup from yesterday. I exported the code modules I added today, and imported them into my backup. No problem of any kind.
What, then, would trigger the “Badd DLL” error? Could it be corruption in the code raising a bogus error?
Thanks.