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 "filesystemobject" 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:
- Dim fso As New Scripting.FileSystemObject
-
Dim fld As Folder
-
Set fld = fso.GetFolder(txtSourceOfFolder)
-
fld.Copy (txtDestinationOfFile)
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:
- Dim fso As New FileSystemObject
-
Dim fldr As Folder
-
Set fso = fso.GetFolder(TxtSource.Text)
-
fldr.Move (TxtDestination.Text)
-
MsgBox "Moved"
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 "filesystemobject" a hard cookie to crack.
lee123