在VBA中,有没有办法确定用户系统(here's a link on how to do that)上是否禁用了Scripting-Runtime,也就是scrrun.dll?Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject") MsgBox "Scripting
因此,我尝试使用一个公共属性,该属性将一个新的Filesystemobject分配给FSO,如果它不存在。但是,每次执行该属性时,FSO都是空的,并且会被新实例化。Public Static Property Get FSO() As Object Set FSO = CreateObject("Scripting.Filesystemobject")End Property
Sub Tes