Cannot initialize Outlook object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have developed an Outlook Office application that is working on all
desktops within our firm except two. They are running Outlook 2003 SP1. On
the two desktops that do not work, the line below is returning "Nothing" and
will not instantiate. Can someone suggest where we might begin to
troubleshoot this? Thanks.

Set o1 = CreateObject("outlook.application.11")
 
Have you tried:

Set o1 = CreateObject("outlook.application")

Also note that many antivirus applications have script blockers that don't allow access to Outlook automation that way.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks Sue. We had already tried your suggestion below (Set o1 =
CreateObject("outlook.application")). We will try to disable ti anti-virus as
well although I believe that all users have the same setup. Is there anything
programmatically that we can do to diagnose this further?
 
Have you tried using early binding an New Outlook.Application?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I will try that just to see if it works. We are using late binding because we
are not sure of what version of Outlook will be installed and we want version
indenpendence.
 
We wrote a small app that tested both early and late binding. They both fail.
The user is running Outlook 2003 SP1. We disabled and unloaded Symantec
protection as well. Are there any security settings within Outlook or Office
that could prevent this? We are at a bit of a loss right now.
 
We wrote a small app that tests both early and late binding. Both fail. We
also disable Symantec protection. Are there any security settings within
Outlook or Office that could affect this? We are at a loss for now. Thanks.
 
No, Outlook and Office themselves don't block external scripting of their objects. Maybe the installation itself is flawed and can be fixed by running Help | Detect and Replair.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top