cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
GroupSquareWolf
Level III

Scripting: open all sheets from an Excel file

What is the syntax to open all sheets from an excel file without naming all the sheets?

 

This is the script log I got after clicking "Select all" in Excel Wizard. The specific excel file had 2 sheets name "Sheet1" and "Sheet2".

Worksheets( {"Sheet1", "Sheet2"} ),

I could not find help from Scripting Index either 

Open( excelFilePath,
     <Worksheets( "sheet name" | {"sheet name", "sheet name", ...} | "n" )>,

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Scripting: open all sheets from an Excel file

This simple syntax should work:

 

 

dt = Open( "Path\Workbook Name.xlsx" );

 

 

 

The variable dt will store a list of data table references when there is more than one sheet.

View solution in original post

1 REPLY 1

Re: Scripting: open all sheets from an Excel file

This simple syntax should work:

 

 

dt = Open( "Path\Workbook Name.xlsx" );

 

 

 

The variable dt will store a list of data table references when there is more than one sheet.

Recommended Articles