From: Kris on
No. How do you mean what kind of object?

The code is actually from someone other. Now i have to fix that error. But,
like i said, the .vbs is working on my own and some other machines. Only on a
few another machines it throws that error. The error comes from Word.


"rub" wrote:

> Did you add after Dim wordApp-- what kind of object you are setting
> up?
> Kris wrote:
> > Hi people,
> >
> > i have a .vbs-script, which runs on some machines and on some other it shows
> > me error code 800A1401. The code looks something like this:
> >
> > Dim wordApp
> > Set wordApp = CreateObject("Word.Application")
> > wordApp.documents.open("\\192.168.2.22\files\testfile.doc")
> > ...
> >
> > ..and this is where the error occurs, in the wordApp.documents.open-command.
> > But only on two machines. It is not because of ActiveX-config in ie. I
> > isolated the .vbs from the web-application and get the same error on these
> > machines.
> >
> > The file-access-permissions are given.
> >
> > Kris
>
>