Thanks genomon. I am using excel 2003 and antivirus shouldn't have anything to do to with it (i think).
When i rename my DLL i can compile it no problem, and even without renaming, it allows me to compile. it's usually when i close excel to add some changes in VB6 and then compile when i getting this message about permission.
any idea why?