It fits back together with the original code; @Feli was just showing how to modify the open. You'll want to use the wizard to interactively open one file, then grab the similar looking open(...) and replace the original open that was for JMP tables with yours for excel files. You'll also need to make some tweaks for the recursive option; without recursive, FilesInDirectory() returns filenames that have to be prefixed with the file path. With recursive, it might just work, but the filenames now include a prefix of a partial pathname. the show() function will print to the log to help you figure it out.
show(filename, path||filename);
for example, might show where a missing or doubled \ or / gets into a path...
Craige