Anoying Access Denied error

Doemaarwat

New member
Joined
Mar 8, 2004
Messages
1
Sorry but i cant find the solution to my problem on the net anywhere. I understand it has to do something with rights, but i dont know where to set which right to what. Can anybody help me?

Whem I try to execute the next line of code I get an Acces Dienied error.
====
Dim xlApp As New Excel.Application()
====
 
Doemaarwat said:
Sorry but i cant find the solution to my problem on the net anywhere. I understand it has to do something with rights, but i dont know where to set which right to what. Can anybody help me?

Whem I try to execute the next line of code I get an Acces Dienied error.
====
Dim xlApp As New Excel.Application()
====

If your machine admistrator has the permissions on your machine locked down you will get that error. Depending on what version of Office you have installed. Most of this, I beleives stems from virus protection as a result of "virsus" applications hijacking native machine applications to do their dirty work. In this case an outside app, your app, is importing Excel.exe into itself and using it to perform a function. I would check and see what the security level of your Excel app or the admin rights on your computer is.
 
Back
Top