发布于 2009-06-12 09:08:17
0楼
我从论坛中找到了下面的代码.
每五分钟定时触发一次,可是没有反应,请问是何故?
Option Explicit
Function action
Dim fso,myfile,daystr,dstr,fname
dstr = FormatDateTime(Date)
fname="d:\" + dstr + ".xls"
Set fso = CreateObject("s cripting.FileSystemObject")
Set MyFile = fso.GetFile("d:\ExcelExample.xls")
MyFile.Copy (fname)
End Function