OLE works in office but not at home.

  • Thread starter Thread starter oorexxpert
  • Start date Start date
O

oorexxpert

I've tried everything but can't get it to work. I want to process my
inbox in Outlook 2003 with a REXX script. To test how this works, I'm
using the OLEINFO sample that came with Open Object REXX. The thing is
that this sample program works fine at my place of work. However, when
I try it at home, it fails to initialize an instance of the Outlook
Application. In both cases, I'm using Outlook 2003 on Windows XP
Professional. I've tried re-installing Outlook and I have scripts
enabled. It just won't work.

This problem may have been already addressed, but I can't find it.

Thanks,

John
 
It might help someone to show what script you're talking about.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 6 Nov 2006 15:24:12 -0800 schrieb oorexxpert:
 
Michael,

I was using the OLEINFO REXX script that come with Open Object REXX. I
receive error code 92: OLE error. Could not create OLE instance. The
script statement is:

target~currentObject=.OLEObject~new(name,"NOEVENTS")

where 'name' is the Outlook.Application.11.

Sorry about not providing the details. If I select other applications,
they work fine, at least most of them. I could generate a list of
those that work and those that don't if that would help.

Thanks,

John
 
I don't know Open Object REXX and because this is a VBA group you maybe need
to find another group.

In VB(A), if you receive something like "could not create an object" then
the library, to which the object belongs to, or the class itself doesn't
exist on the computer. That might happen if the library is an optional
component (e.g. CDO 1.21 for Outlook) or the library or class name is wrong
spelled.

Another reason could be an anti virus software that prevents code from
creating objects.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 9 Nov 2006 18:23:03 -0800 schrieb oorexxpert:
 
In that the sample program works fine on my work computer, I presume
there is nothing wrong with the sample program. When I installed
Outlook 2003 on my home computer, I did not receive any prompt, that I
can recall, that allowed me to choose an optional component. Besides,
I would would think that if the component wasn't installed, it would
not appear on the list of applications presented by the sample progam
(it get the list of applications from the registry). I would post this
to another group but I don't know which one to use. I tried an Outlook
General group but they said to post to a technical group. I chose this
one because it looked like it was technical. I don't what CDO 1.21 is.

Thanks,

John
 
So it might be helpfull to check for a script blocking anti virus tool.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 10 Nov 2006 06:42:11 -0800 schrieb (e-mail address removed):
In that the sample program works fine on my work computer, I presume
there is nothing wrong with the sample program. When I installed
Outlook 2003 on my home computer, I did not receive any prompt, that I
can recall, that allowed me to choose an optional component. Besides,
I would would think that if the component wasn't installed, it would
not appear on the list of applications presented by the sample progam
(it get the list of applications from the registry). I would post this
to another group but I don't know which one to use. I tried an Outlook
General group but they said to post to a technical group. I chose this
one because it looked like it was technical. I don't what CDO 1.21 is.

Thanks,

John


I don't know Open Object REXX and because this is a VBA group you maybe need
to find another group.

In VB(A), if you receive something like "could not create an object" then
the library, to which the object belongs to, or the class itself doesn't
exist on the computer. That might happen if the library is an optional
component (e.g. CDO 1.21 for Outlook) or the library or class name is wrong
spelled.

Another reason could be an anti virus software that prevents code from
creating objects.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 9 Nov 2006 18:23:03 -0800 schrieb oorexxpert:
Michael,

I was using the OLEINFO REXX script that come with Open Object REXX. I
receive error code 92: OLE error. Could not create OLE instance. The
script statement is:

target~currentObject=.OLEObject~new(name,"NOEVENTS")

where 'name' is the Outlook.Application.11.

Sorry about not providing the details. If I select other applications,
they work fine, at least most of them. I could generate a list of
those that work and those that don't if that would help.

Thanks,

John

Michael Bauer [MVP - Outlook] wrote:
It might help someone to show what script you're talking about.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 6 Nov 2006 15:24:12 -0800 schrieb oorexxpert:

I've tried everything but can't get it to work. I want to process my
inbox in Outlook 2003 with a REXX script. To test how this works, I'm
using the OLEINFO sample that came with Open Object REXX. The thing is
that this sample program works fine at my place of work. However, when
I try it at home, it fails to initialize an instance of the Outlook
Application. In both cases, I'm using Outlook 2003 on Windows XP
Professional. I've tried re-installing Outlook and I have scripts
enabled. It just won't work.

This problem may have been already addressed, but I can't find it.

Thanks,

John
 
I thought about an anti-virus tool. The only tool I use is Zone Alarm.
I disabled Zone Alarm without any effect. Besides, some applications
I select from the list that OLEINFO provides work just fine.

Thanks,

John

So it might be helpfull to check for a script blocking anti virus tool.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 10 Nov 2006 06:42:11 -0800 schrieb (e-mail address removed):
In that the sample program works fine on my work computer, I presume
there is nothing wrong with the sample program. When I installed
Outlook 2003 on my home computer, I did not receive any prompt, that I
can recall, that allowed me to choose an optional component. Besides,
I would would think that if the component wasn't installed, it would
not appear on the list of applications presented by the sample progam
(it get the list of applications from the registry). I would post this
to another group but I don't know which one to use. I tried an Outlook
General group but they said to post to a technical group. I chose this
one because it looked like it was technical. I don't what CDO 1.21 is.

Thanks,

John


I don't know Open Object REXX and because this is a VBA group you maybe need
to find another group.

In VB(A), if you receive something like "could not create an object" then
the library, to which the object belongs to, or the class itself doesn't
exist on the computer. That might happen if the library is an optional
component (e.g. CDO 1.21 for Outlook) or the library or class name is wrong
spelled.

Another reason could be an anti virus software that prevents code from
creating objects.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 9 Nov 2006 18:23:03 -0800 schrieb oorexxpert:

Michael,

I was using the OLEINFO REXX script that come with Open Object REXX. I
receive error code 92: OLE error. Could not create OLE instance. The
script statement is:

target~currentObject=.OLEObject~new(name,"NOEVENTS")

where 'name' is the Outlook.Application.11.

Sorry about not providing the details. If I select other applications,
they work fine, at least most of them. I could generate a list of
those that work and those that don't if that would help.

Thanks,

John

Michael Bauer [MVP - Outlook] wrote:
It might help someone to show what script you're talking about.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 6 Nov 2006 15:24:12 -0800 schrieb oorexxpert:

I've tried everything but can't get it to work. I want to process my
inbox in Outlook 2003 with a REXX script. To test how this works, I'm
using the OLEINFO sample that came with Open Object REXX. The thing is
that this sample program works fine at my place of work. However, when
I try it at home, it fails to initialize an instance of the Outlook
Application. In both cases, I'm using Outlook 2003 on Windows XP
Professional. I've tried re-installing Outlook and I have scripts
enabled. It just won't work.

This problem may have been already addressed, but I can't find it.

Thanks,

John
 
If your code works with all applications but Outlook then that might point
to a script blocker again. AFAIK script blocker only exist for Outlook.

I've read that Symantec e.g. adds the following entry to the registry, and
doesn't remove it even if you remove Symantec:

HKEY_CLAASES_ROOT\CLSID\{00020D09-0000-0000-C000-000000000046}
InProcServer32 = "C:\Programme\Shared Files\Symantec
Shared\Script Blocking\ScrBlock.dll"

You can search for more info about Zone Alarm and script blocking, maybe
searching your registry for "script blocking" also helps. Or you start
searching any forum for Open Object REXX. If your problem is a script issue
then you probably have to post the code.

One more thing that you could test is try to start Outlook for instance from
Excel VBA. Therefore make sure Outlook doesn't run, start Excel, press
ALT+F11 and insert this code:

Public Sub Test()
Dim ol as Object
Set ol=CreateObject("Outlook.Application")
msgbox ol.name
End Sub

Then place the cursor into the procedure and press F5. If you get the MsgBox
then it's no script blocker, if you get an error (can't create object) then
it is.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 11 Nov 2006 08:43:46 -0800 schrieb oorexxpert:
I thought about an anti-virus tool. The only tool I use is Zone Alarm.
I disabled Zone Alarm without any effect. Besides, some applications
I select from the list that OLEINFO provides work just fine.

Thanks,

John

So it might be helpfull to check for a script blocking anti virus tool.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 10 Nov 2006 06:42:11 -0800 schrieb (e-mail address removed):
In that the sample program works fine on my work computer, I presume
there is nothing wrong with the sample program. When I installed
Outlook 2003 on my home computer, I did not receive any prompt, that I
can recall, that allowed me to choose an optional component. Besides,
I would would think that if the component wasn't installed, it would
not appear on the list of applications presented by the sample progam
(it get the list of applications from the registry). I would post this
to another group but I don't know which one to use. I tried an Outlook
General group but they said to post to a technical group. I chose this
one because it looked like it was technical. I don't what CDO 1.21 is.

Thanks,

John



Michael Bauer [MVP - Outlook] wrote:
I don't know Open Object REXX and because this is a VBA group you maybe need
to find another group.

In VB(A), if you receive something like "could not create an object" then
the library, to which the object belongs to, or the class itself doesn't
exist on the computer. That might happen if the library is an optional
component (e.g. CDO 1.21 for Outlook) or the library or class name is wrong
spelled.

Another reason could be an anti virus software that prevents code from
creating objects.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 9 Nov 2006 18:23:03 -0800 schrieb oorexxpert:

Michael,

I was using the OLEINFO REXX script that come with Open Object REXX. I
receive error code 92: OLE error. Could not create OLE instance. The
script statement is:

target~currentObject=.OLEObject~new(name,"NOEVENTS")

where 'name' is the Outlook.Application.11.

Sorry about not providing the details. If I select other applications,
they work fine, at least most of them. I could generate a list of
those that work and those that don't if that would help.

Thanks,

John

Michael Bauer [MVP - Outlook] wrote:
It might help someone to show what script you're talking about.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 6 Nov 2006 15:24:12 -0800 schrieb oorexxpert:

I've tried everything but can't get it to work. I want to process my
inbox in Outlook 2003 with a REXX script. To test how this works, I'm
using the OLEINFO sample that came with Open Object REXX. The thing is
that this sample program works fine at my place of work. However, when
I try it at home, it fails to initialize an instance of the Outlook
Application. In both cases, I'm using Outlook 2003 on Windows XP
Professional. I've tried re-installing Outlook and I have scripts
enabled. It just won't work.

This problem may have been already addressed, but I can't find it.

Thanks,

John
 
Michael,

That's it!! The problem was the line being left in the registry. Once
I removed it and rebooted, the REXX sample program worked fine. Now I
face a long process of writing my own REXX to process input emails,
writing certain emails to specific folders, etc.

Thank again,

John

If your code works with all applications but Outlook then that might point
to a script blocker again. AFAIK script blocker only exist for Outlook.

I've read that Symantec e.g. adds the following entry to the registry, and
doesn't remove it even if you remove Symantec:

HKEY_CLAASES_ROOT\CLSID\{00020D09-0000-0000-C000-000000000046}
InProcServer32 = "C:\Programme\Shared Files\Symantec
Shared\Script Blocking\ScrBlock.dll"

You can search for more info about Zone Alarm and script blocking, maybe
searching your registry for "script blocking" also helps. Or you start
searching any forum for Open Object REXX. If your problem is a script issue
then you probably have to post the code.

One more thing that you could test is try to start Outlook for instance from
Excel VBA. Therefore make sure Outlook doesn't run, start Excel, press
ALT+F11 and insert this code:

Public Sub Test()
Dim ol as Object
Set ol=CreateObject("Outlook.Application")
msgbox ol.name
End Sub

Then place the cursor into the procedure and press F5. If you get the MsgBox
then it's no script blocker, if you get an error (can't create object) then
it is.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 11 Nov 2006 08:43:46 -0800 schrieb oorexxpert:
I thought about an anti-virus tool. The only tool I use is Zone Alarm.
I disabled Zone Alarm without any effect. Besides, some applications
I select from the list that OLEINFO provides work just fine.

Thanks,

John

So it might be helpfull to check for a script blocking anti virus tool.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 10 Nov 2006 06:42:11 -0800 schrieb (e-mail address removed):

In that the sample program works fine on my work computer, I presume
there is nothing wrong with the sample program. When I installed
Outlook 2003 on my home computer, I did not receive any prompt, that I
can recall, that allowed me to choose an optional component. Besides,
I would would think that if the component wasn't installed, it would
not appear on the list of applications presented by the sample progam
(it get the list of applications from the registry). I would post this
to another group but I don't know which one to use. I tried an Outlook
General group but they said to post to a technical group. I chose this
one because it looked like it was technical. I don't what CDO 1.21 is.

Thanks,

John



Michael Bauer [MVP - Outlook] wrote:
I don't know Open Object REXX and because this is a VBA group you maybe
need
to find another group.

In VB(A), if you receive something like "could not create an object" then
the library, to which the object belongs to, or the class itself doesn't
exist on the computer. That might happen if the library is an optional
component (e.g. CDO 1.21 for Outlook) or the library or class name is
wrong
spelled.

Another reason could be an anti virus software that prevents code from
creating objects.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 9 Nov 2006 18:23:03 -0800 schrieb oorexxpert:

Michael,

I was using the OLEINFO REXX script that come with Open Object REXX. I
receive error code 92: OLE error. Could not create OLE instance. The
script statement is:

target~currentObject=.OLEObject~new(name,"NOEVENTS")

where 'name' is the Outlook.Application.11.

Sorry about not providing the details. If I select other applications,
they work fine, at least most of them. I could generate a list of
those that work and those that don't if that would help.

Thanks,

John

Michael Bauer [MVP - Outlook] wrote:
It might help someone to show what script you're talking about.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 6 Nov 2006 15:24:12 -0800 schrieb oorexxpert:

I've tried everything but can't get it to work. I want to process my
inbox in Outlook 2003 with a REXX script. To test how this works, I'm
using the OLEINFO sample that came with Open Object REXX. The thing
is
that this sample program works fine at my place of work. However,
when
I try it at home, it fails to initialize an instance of the Outlook
Application. In both cases, I'm using Outlook 2003 on Windows XP
Professional. I've tried re-installing Outlook and I have scripts
enabled. It just won't work.

This problem may have been already addressed, but I can't find it.

Thanks,

John
 
Back
Top