VBScript to loop through Excel-files and change macro
问题 I already posted a closely related question last week VBScript to add code to Excel workbook which got solved by a fellow programmer. But I ran into the next problem with that task: With the following code, I try to loop through a folder of Excel files then open them one by one and change the macro in DieseArbeitsmappe . This works fine for the first file but the second ends with this error message. Error message Set objFSO = CreateObject("Scripting.FileSystemObject") sFolder = "P: