File system error

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am getting the 'User defined type not defined' on the line;

Dim fso As Scripting.FileSystemObject.

What am I doing wrong? What reference do I need to add? Do I need to
install/enable scripting on the win xp sp2 machine?

Thanks

Regards
 
Am Sun, 15 Jan 2006 13:59:46 -0000 schrieb John:

Please add a ref on "Microsoft Scripting Runtime".
 
Perhaps an alternative...

Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")

HTH :>)
 
Back
Top