I have one workstation that gets the following error when running my
application but the other workstations are fine.

This is the line causing the problem:

RegEx = CREATEOBJECT("VBSCRIPT.RegExp")

Any idea what could be causing this?

Cheers
David

Re: Class definition VBSCRIPT.REGEXP is not found by Michael

Michael
Wed Jun 20 09:19:32 CDT 2007

David Younger wrote:
> I have one workstation that gets the following error when running my
> application but the other workstations are fine.
>
> This is the line causing the problem:
>
> RegEx = CREATEOBJECT("VBSCRIPT.RegExp")
>
> Any idea what could be causing this?

You at least need the Set statement...

Set RegEx = CREATEOBJECT("VBSCRIPT.RegExp")
...or...
Set RegEx = new RegExp

If still a problem, try...

regsvr32.exe vbscript.dll

...in case it is simply a COM registration gone bad.

--
Michael Harris
Microsoft.MVP.Scripting