I have seen some very general suggestions for alternative code to the
WScript.Shell code, but nothing specific. In the two lines of code
below (I think) the first line creates a text file on the hard drive.
When I get to this line I get runtime error 429 "ActiveX component
can't create object". I know I should not use WSH but I haven't been
able to figure out an alternative. I tried looking through the VBA
editor help file for "file" and "createobje ct" but I didn't get
anywhere.
Set shell = CreateObject("W Script.Shell")
Set fso = CreateObject("S cripting.FileSy stemObject")
WScript.Shell code, but nothing specific. In the two lines of code
below (I think) the first line creates a text file on the hard drive.
When I get to this line I get runtime error 429 "ActiveX component
can't create object". I know I should not use WSH but I haven't been
able to figure out an alternative. I tried looking through the VBA
editor help file for "file" and "createobje ct" but I didn't get
anywhere.
Set shell = CreateObject("W Script.Shell")
Set fso = CreateObject("S cripting.FileSy stemObject")
Comment