<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60734#M33071</link>
    <description>&lt;P&gt;I was also wondering about if I updated my version of JMP and then attempted to run the script on a different device with the outdated version installed. Would the script still function as intended?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 13:24:17 GMT</pubDate>
    <dc:creator>Jaz</dc:creator>
    <dc:date>2018-06-21T13:24:17Z</dc:date>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60726#M33064</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the Get Excel Worksheets function to save each of the worksheets in my excel file as a seperate data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code and I keep getting a name unresolved error, but I'm sure that the file path is correct.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;listOfWorksheets = Get Excel Worksheets("C:\Users\jaz\Desktop\Template.xlsx"); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Another thing is that the Get Excel Worksheets doesn't appear in blue in my script. Does that mean that the version of JMP I'm using doesn't support this function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60726#M33064</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2023-06-10T23:13:49Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60728#M33065</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12049"&gt;@Jaz&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Couple of things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In order to save each work table as a separate worksheet, you will want to use the Create Excel Workbook&lt;/P&gt;&lt;P&gt;2. As for the error you are getting, your line of code follows the syntax, the other things to consider are :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a. What are the names of the tabs ? Try renaming them to see if they are causing an issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;b. Is the file locked or restricted ? Try creating a copy of the file and rerunning your code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;c. Lastly, are you using a windows OS or a MAC ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:01:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60728#M33065</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-06-21T13:01:41Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60729#M33066</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Would appreciate it if you could read my edited post above and I'm using Windows OS.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:04:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60729#M33066</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-21T13:04:26Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60730#M33067</link>
      <description>Also, how would I go about creating an excel workbook? Thanks.</description>
      <pubDate>Thu, 21 Jun 2018 13:05:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60730#M33067</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-21T13:05:36Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60731#M33068</link>
      <description>&lt;P&gt;Which version of JMP are you using ? If it is before JMP 12, I doubt Get Excel Worksheets() existed. If the function is not being identified, while other functions are, it most likely is not a part of the version you are using. YOu may confirm by trying to search the function in "scripting index" as well.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As for your other question, if you are using the right version, once you achieve the list of Excel sheets, you can loop around the list and use the open() function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;FilePath = &amp;lt;Your Custom File Path&amp;gt;; 

SheetsList = Get Excel Worksheets(FilePath); 

for(i = 1, i &amp;lt;= N Items(SheetsList), i++,
            dt = Open(FilePath || SheetsList[i]); 
   ); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SheetsList =&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:12:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60731#M33068</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-06-21T13:12:29Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60732#M33069</link>
      <description>&lt;P&gt;Yes, it looks like the version I'm using is out of date. Is there any other way you could suggest of turning each individual sheet into a data table and saving it. Note: I want to do it in JSL not using wizards.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:16:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60732#M33069</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-21T13:16:51Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60733#M33070</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12049"&gt;@Jaz&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;You can use the import wizards to give you the corresponding JSL. However if you don't want to do that, you can make a list of the worksheets manually, and try to use the open command and loop through and open each worksheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is an example of the different parameters Open() might need. You may need to provide all of those, but this is just an example&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( FilePath[i],
	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 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:20:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60733#M33070</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-06-21T13:20:21Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60734#M33071</link>
      <description>&lt;P&gt;I was also wondering about if I updated my version of JMP and then attempted to run the script on a different device with the outdated version installed. Would the script still function as intended?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:24:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60734#M33071</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-21T13:24:17Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60735#M33072</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12049"&gt;@Jaz&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I don't follow your question. If you had an updated JMP version on a machine , then the code you developed in the prior version would mostly work unless any functionality has been removed/changed. However, without seeing the script or the functions you are going to use, that will be hard to answer with a definitive yes/no. My guess would be that it will run fine if you using basic JSL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:27:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60735#M33072</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-06-21T13:27:30Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60897#M33114</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify, I mean that if I had used the function Get Excel Worksheets (which is only available in JMP 12 / newer)&amp;nbsp; in my script, and someone else attempted to run that script on their computer which only has JMP 11, would the script run as intended (would the Get Excel Worksheets function work)? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:35:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60897#M33114</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-22T10:35:25Z</dc:date>
    </item>
    <item>
      <title>RE: Saving Multiple Excel Sheets as Seperate Data Tables in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60899#M33116</link>
      <description>&lt;P&gt;To answer your previous question, a script using a feature new to version 12 will fail in version 11, with a JSL error saying it doesn't understand the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JMP 11, you would need to save tables as individual Excel files.&amp;nbsp; There is no ability to collect a bunch of tables together into a single workbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 12:10:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RE-Saving-Multiple-Excel-Sheets-as-Seperate-Data-Tables-in-JSL/m-p/60899#M33116</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-06-22T12:10:38Z</dc:date>
    </item>
  </channel>
</rss>

