Hi, Jim,
Thanks for you reply.
Disabling DEP will certainly make everything work fine. Because VBA 6.5 claims it supports DEP, we upgraded VBA 6.3 to 6.5 for our own application, so the application can run with DEP enabled. Actually, we want to run with permanent DEP. However, we found that executing any VBA codes caused Access Violation. And we also found that Excel behaved the exactly the same.
So, the real question is that how much VBA 6.5 support DEP? Does it support permanent DEP on hardware DEP?
Xingzhong Sun