@AlexC84,
Yes, as long as you don't trust the file and keep getting the "Security Warning - Enable Content" warning, the errors don't occur. Very strange. It seems like the code starts compiling before all the forms/modules load and it doesn't see some of the form controls. Getting the warning allows the complete file to load and then compile properly. Obviously, that's just speculation on my part and has no relevance to fixing the problem. I have a lot of macro enabled files and the error only seems to occur on the more complex ones.
I've been doing some additional testing on the VBA cleaning process that I described in an earlier post. (@Andreas described what it does in an earlier post in this thread.) It seemed to be working when I tested it initially, but I sent a cleaned file to a few users and one of them said it didn't work. However, in all my testing since, it still seems to be working and a few more users have indicated it is working for them. I'm going to be testing it a lot more over the next few days and sending it out to more users, so I'll post back here with the results. However, I don't consider this an acceptable solution as the problem could re-occur in the future or might not work for all users depending on their setups.
Here's another thread on the problem: Variable not defined errors with Excel update 2212 dated 04 January - Microsoft Community