Are any Library References Broken?
The first thing to check is whether the library references for your module code are valid. From the VBA IDE, go under Tools, References to see the list of referenced libraries and make sure none of the checked items say “Missing” in front of them. If so, fix that and your problem should go away. Assuming that’s not the cause of the problem….