Sub x()
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject"
fso.copyfile "\\your source path\..\pcounterorderform.pdf", "c:\"
End Sub
Copy file has a third argument which is 'Overwrite' ie overwrite the file if it already exists. The default is True, as in this case. If you change it to false and the file exists you will get a trappable error.
3 days to go
;-) If a man says something and there are no women there to hear him, is he still wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.