Creating Outlook Object

N

Nuyttens Xavier

I try to create a new instance for Outlook with the command
CreateObject("Outlook.Appliaction"). This gives me the error: OLE error
code: 0x80070005 Access Denied. If I try this command in a visual basic
application, it gives the error: Cannot create ActiveX Component. I only
got this error on 1 machine ( it Works well on 3 other machines ) and I have
no problems to execute commands like CreateObject("Word.Application") and
CreateObject("Excel.Application"). It propably has something to do with
security, but I have no more idea where to look.

I use Outlook 2003, Windows NT 2000 server and login as Administrator (so I
have all rights)

Thanks in advance for the help

Xavier
 
S

Sue Mosher [MVP-Outlook]

YOu may have an anti-virus tool installed on the machine with a
script-blocking component that prevents access to the Outlook.Application
object.
 
F

François

in VBA, Did you set the reference to the Outlook object ?
(Tools / Reference) ?

François
 
N

Nuyttens Xavier

Actually, it's not VBA that's gives the problem, the problem started in
Visual Basic.NET and occurs also in Foxpro, so it's not really depending on
the programming language, but since this was the closest group I could find,
I posted it here.
 
S

Sue Mosher [MVP-Outlook]

I'd keep looking. That's the most likely culprit.

For troubleshooting, though, it might be interesting to see if any code in
the Outlook VBA environment itself runs OK.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top