Does VBScript allow named arguments in function calls?
VBScript doesn’t support named arguments to procedures and functions. You need to change the argument list to positional: Workbooks.OpenText Filename_Argument, xlMSDOS, … VBScript also doesn’t recognize Excel constants (like xlMSDOS), so you need to look them up and replace them with their numeric values: Workbooks.OpenText Filename_Argument, 3, … And you must use explicit object references: … Read more