Hey, Joe,
Actually, I think reusing the variable "temp" is not the problem, because JMP is saying that "JSload" is what it can't find. I think the problem is that your function is defined *after* you call it. In JMP, your function needs to be defined before you call it. Move the "JSload = function({temp},...)" section to before the for loop and I suspect it will work.
Also, it appears you are missing a closing paren and semicolon at the end of the function definition.
This version works for me:
filepath = "c:\users\public\temp\";
fileList = {"myTest.xlsx"};
JSload = Function({temp},
Open(
temp,
Worksheets( "Sheet1" ),
Use for all sheets( 1 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 0 ),
Replicated Spanned Rows( 1 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 )
);
);
);
For( index1 = 1,index1 <= 1, index1++,
temp = (filepath||filelist[index1]);
JSload(temp);
);
HTH,
Eric