i have tried to copy a file but it doesn't work can anybody tell me why by looking at this code. and try to help me get it right.
I keep Getting an Error
lee123
Code:
Private Sub cmdCopy_Click()
Dim ofilesysobj As FileSystemObject 'This One Doesn't work At All
Dim ofolder As Folder 'Error: Compile "Expected Function or Variable"
Set ofolder = ofilesysobj.CopyFolder("F:\Music\Tesla\*Tesla - 1986 - Mechanical resonance", "C:\Tesla")
MsgBox "File Has Been Copied"
End Sub
lee123
Comment