几何尺寸与公差论坛

 找回密码
 注册
查看: 694|回复: 0

【转帖】need to copy a file but get 9expected procedure, not variable.0 with

[复制链接]
发表于 2009-4-13 13:03:58 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 09:22 , Processed in 0.035004 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表