Hi,

I need to move a text file from a directory to another.

I have the following code to do that:

Sub Manip_Files()
Dim fso As New FileSystemObject, fil1

Set fil1 = fso.GetFile("c:\testfile.txt")
fil1.Move ("c:\tmp\testfile.txt")
End Sub

It gives the error:
compile error: user-defined type not defined.

Does anybody know why?

How can I do it?