|  | 
 
| need to copy a file but get (expected procedure, not variable.) with help code? from help i got this:
 dim sourcefile, destinationfile
 sourcefile = "srcfile" ' define source file name.
 destinationfile = "destfile" ' define target file name.
 filecopy sourcefile, destinationfile ' copy source to target.
 i made this:
 dim sourcefile, destinationfile
 sourcefile = "s:\pdf print files\dlee\" & fname1 & " - dwg.pdf" ' define source file name.
 destinationfile = "s:\temp\ipdp_files\" ' define target file name.
 filecopy sourcefile, destinationfile ' copy source to target
 but when i run it i get:
 expected procedure, not variable.
 can anyone help?
 you will have named your module code name filecopy, so the function within it gets confused. renamed the module filename to filecopy1
 | 
 |