I get run time error '5' when I run this code. any sugestions?
Sub FileCopyExample()
Dim oFSO As Object
Dim sSourcePath As String
Dim sTargetPath As String
Set oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.CopyFolder "C:\PNTTEMPL\CustomDoc\*", "C:\PNTTEMPL\CustomDoc\TEST\"
Set oFSO = Nothing
End Sub
|