why is this so hard to do. i have alot of books that have exaples of how to do these things but when i try the exaples they never work i have a previous post on "copying files" some of the other guys help on this one and i tried to do the same thing with the "movefile" but it never worked as you can see the "filesystemobje ct" is hard to accomplish for me because this "Movefolder " event falls in this category the code i have i have used for the copyfolder event right here:
this is to copy the folder. How can i use this to move the folder to another folder of my choosing. because i have tried this:
so can someone tell me or explain to me why it doesn't work. is there something There not explaining in these books? or is this "filesystemobje ct" a hard cookie to crack.
lee123
Code:
Dim fso As New Scripting.FileSystemObject Dim fld As Folder Set fld = fso.GetFolder(txtSourceOfFolder) fld.Copy (txtDestinationOfFile)
Code:
Dim fso As New FileSystemObject Dim fldr As Folder Set fso = fso.GetFolder(TxtSource.Text) fldr.Move (TxtDestination.Text) MsgBox "Moved"
lee123
Comment