Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL unable to compile (permission denied)

Status
Not open for further replies.

bartrein

Programmer
Sep 22, 2008
49
EU
Hi

I'm having a problem compiling my VB6 library which i am using in excel VBA.

Excel application is closed, i've set class = nothing at the end of my vba macro.

any idea why is this happening?

 
Try disabling antivirus, especially if it is Symantec Endpoint.

Cogito eggo sum – I think, therefore I am a waffle.
 
Ooops - forgot! If you are using Excel 2007 you will need to enable all macros in the trust center, and make sure you add the location of the dll to the list of trusted folders.

Cogito eggo sum – I think, therefore I am a waffle.
 
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?
 
Next time you get the error try pulling up task manager and see if something is running you don't expect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top