Creating Outlook Object

  • Thread starter Thread starter Nuyttens Xavier
  • Start date Start date
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
 
YOu may have an anti-virus tool installed on the machine with a
script-blocking component that prevents access to the Outlook.Application
object.
 
in VBA, Did you set the reference to the Outlook object ?
(Tools / Reference) ?

François
 
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.
 
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
 
Back
Top