Dachande11
Registered User.
- Local time
- Today, 01:05
- Joined
- May 1, 2001
- Messages
- 41
Hello,
I am trying to copy folders within code and thought I had the answer in the following code which I found on this forum.
Dim fs As Variant
Set fs = CreateObject("Scripting.FileSystemObject")
fs.copyfolder "C:\Documents and Settings\szymkm\My Documents\test", "C:\Documents and Settings\szymkm\My Documents\test\FolderTest"
Unfortunately I keep getting the following error. "Invalid procedure call or argument (Error 5)"
If anyone could point me in the right direction I would be very grateful.
Thanks
Mark
I am trying to copy folders within code and thought I had the answer in the following code which I found on this forum.
Dim fs As Variant
Set fs = CreateObject("Scripting.FileSystemObject")
fs.copyfolder "C:\Documents and Settings\szymkm\My Documents\test", "C:\Documents and Settings\szymkm\My Documents\test\FolderTest"
Unfortunately I keep getting the following error. "Invalid procedure call or argument (Error 5)"
If anyone could point me in the right direction I would be very grateful.
Thanks
Mark