J
Jarryd
Hi,
Why is it that this generates the error "Object required, Error 424":
FileSystemObject.CopyFile "c:\mydocuments\letters\*.doc", "c:\tempfolder\"
It's straight out the VBA helpfile. I have created those exact paths and
filename. I want to copy a file that will have a wildcard extension to
folder and then rename it. This really should be easy. The only way it
works is if I get rid of the "*". But that is ridiculous. I am currently
using a batch file to do it, but I would prefer to use VBA so that I can
easily return a meaningful error message if the file is missing.
TIA,
Jarryd
Why is it that this generates the error "Object required, Error 424":
FileSystemObject.CopyFile "c:\mydocuments\letters\*.doc", "c:\tempfolder\"
It's straight out the VBA helpfile. I have created those exact paths and
filename. I want to copy a file that will have a wildcard extension to
folder and then rename it. This really should be easy. The only way it
works is if I get rid of the "*". But that is ridiculous. I am currently
using a batch file to do it, but I would prefer to use VBA so that I can
easily return a meaningful error message if the file is missing.
TIA,
Jarryd