I would like to write JMP script which try to open specific worksheet from excel.
The problem is if one of my excel files not including the requested worksheet, then the JMP script crush .
I need advice how can I prevent it? (I mean, check before open the excel, if it including the requested worksheet..)
this si my code:
add_to_DB = function({file_path, sheet, header_line, data_line},
new_dt = Open(
file_path,
Worksheets( sheet ),
Worksheet Settings(
Headers Start on Row( header_line ),
Data Starts on Row( data_line ))
);
......