Originally posted by DaoK
It gives the error:
compile error: user-defined type not defined.



Have you add the Microsoft Scripting Runtime ?
why don't you read the earlier replies first?