Permission Denied error when attempting OLE Automation to Excel

J

Jim

Hi everybody,

I'm having an issue when trying to do OLE automation to Excel in Access
2003.

Here's my code:

Sub test()
Dim xl As Excel.Application
Set xl = New Excel.Application ' Error occurs here
xl.Visible = True
End Sub

The error I get is error #70: Permission Denied.

I have installed Jet SP8 and set my security settings to Low, to no avail.
Has anybody got a solution to this problem?

Thanks, Jim
 
C

Chris

Had a similar problem on my machine with Word.
Problem turned out to be the default security settings in
DCOM.
Open the Start ~ Run Dialog box and type dcomcnfg and
check out the default settings
 
J

Jim

Thanks, that did the trick. I forgot that I was messing around w/ DCOMCnfg
a few months ago doing OLE automation from ASP.NET... Doh!

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top