Option Explicit
The Function action
Dim fso, myfile daystr, DSTR, fname
DSTR=FormatDateTime (Date)
DSTR fname="d: " + + ". XLS "
The Set fso=CreateObject (" s cripting. FileSystemObject ")
The Set MyFile=fso. GetFile (" d: \ ExcelExample. XLS ")
MyFile. Copy (fname)
HMIRuntime. Tags (" I "). Write 2
End the Function
But the execution to Set fso=CreateObject (" s cripting. FileSystemObject ") this sentence is not performed, also is not an error, I checked the online and fso component has not started, I found regsvr32 scrrun. DLL this component, double-click The Times wrong module scrrun. DLL loaded, but the call to DllRegisterServer failed, the error code of 0 x 80004005, I run at the command prompt as administrator in the regsvr32 scrrun. DLL, the result is DllRegisterServer in scrrun. DLL in order to succeed, true have a little dizzy, ask the great spirit
CodePudding user response:
You here more than one space, be careful!The Set fso=CreateObject (" s cripting. FileSystemObject ")
===& gt;
The Set of fso=CreateObject (" scripting. FileSystemObject ")
CodePudding user response:
About whether he is suitable for programming is very simple test:On a newspaper or magazine articles, for a period of about 1000 words in Word input again, after losing to refer to the following answer:
A. there are more than 10 words or punctuation
B there is no words or punctuation mistakes and dare to bet for this
No words or punctuation errors and C fonts and layout fully consistent with the original
D print on the translucent paper and check the same original overlap, and feel very with a sense of accomplishment
A is not suitable for programming (reason: typing accuracy is low, careless)
B junior programmer (reason: typing accuracy high, careful and meticulous, confident, understand the whole Angle of half Angle concept)
C senior programmer (reason: in the B on the basis of understanding the font and layout is also an important factor of computer to print, but compared to D paranoid enough, strives for perfection, the results can verify)
D software project manager (reason: to be able to give convincing for project detailed requirements to the pole and typical test cases, users almost pick is not at fault, major!)
If want to from A to B, to my resources http://download.csdn.net/detail/zhao4zhong1/4084259 download "for programmers keyboard practice"
CodePudding user response: