it was that the missing reference to "Microsoft Scripting Runtime".
thank you

Ana

Ivan Raiminius" wrote:

> Hi,
>
> if you add
> dim fs as scripting.filesystemobject
> you should also set the reference to "Microsoft Scripting Runtime".
>
> When your original code stops, what is the error message?
>
> Regards,
> Ivan
>
>