打开TXT文件出现Automation错误
skyzj 2017-03-21 01:33:19 Dim backpath As String
backpath = App.path
If Right(backpath, 1) <> "\" Then backpath = backpath + "\"
backpath = backpath + "err.txt"
Dim fso As New Scripting.FileSystemObject
Dim ts As TextStream
Set ts = fso.OpenTextFile(backpath, ForAppending, True)
执行到上面这句时出现 “Automation错误”
某些电脑正常,某些电脑会这样。
是什么原因?