<?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: Multi File Import Certain Tabs and Columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685844#M87182</link>
    <description>&lt;P&gt;As long as each xlsx is set up the same way, just iterate over a list of the files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;FPlist = {"$DESKTOP/temp.xlsx", "$DESKTOP/temp1.xlsx"};
For Each( {val}, FPlist,
	Open(
		val,
		Worksheets( {"Sheet1", "Sheet3"} ),
		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 ),
			Treat as Hierarchy( 0 ),
			Multiple Series Stack( 0 ),
			Import Cell Colors( 0 ),
			Column Separator String( "-" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Oct 2023 14:32:33 GMT</pubDate>
    <dc:creator>mmarchandTSI</dc:creator>
    <dc:date>2023-10-11T14:32:33Z</dc:date>
    <item>
      <title>Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685699#M87175</link>
      <description>&lt;P&gt;I am trying to import multiple XLSX files (which I know how to do), but I only need certain tabs with certain columns. I don't need everything being imported. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using JMP 17. Can recreate with steps or JSL code.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:25:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685699#M87175</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2023-10-11T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685782#M87177</link>
      <description>&lt;P&gt;The settings for inputting an .xlsx file has the ability to specify the specific worksheets to be input.&amp;nbsp; It also has the ability to specify the starting column and ending column&lt;/P&gt;
&lt;P&gt;The Scripting Index has an entry that shows and example that has the input options displayed.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1697032278284.png" style="width: 828px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57403i70400F086570520B/image-dimensions/828x613?v=v2" width="828" height="613" role="button" title="txnelson_0-1697032278284.png" alt="txnelson_0-1697032278284.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:51:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685782#M87177</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-11T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685823#M87179</link>
      <description>&lt;P&gt;Thank you. This works if I am doing each file one by one, but not multiple files at once. Do you know how to do this for multiple files at once?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 14:04:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685823#M87179</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2023-10-11T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685844#M87182</link>
      <description>&lt;P&gt;As long as each xlsx is set up the same way, just iterate over a list of the files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;FPlist = {"$DESKTOP/temp.xlsx", "$DESKTOP/temp1.xlsx"};
For Each( {val}, FPlist,
	Open(
		val,
		Worksheets( {"Sheet1", "Sheet3"} ),
		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 ),
			Treat as Hierarchy( 0 ),
			Multiple Series Stack( 0 ),
			Import Cell Colors( 0 ),
			Column Separator String( "-" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 14:32:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685844#M87182</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-11T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685960#M87193</link>
      <description>&lt;P&gt;I have been trying to get that script to work and I cannot make it happen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:47:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685960#M87193</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2023-10-11T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685979#M87195</link>
      <description>&lt;P&gt;Could be the worksheet settings won't work with your specific files.&amp;nbsp; This is how I got this script.&amp;nbsp; Open one file using the Excel wizard first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_0-1697044301686.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57470iD47F008901D2D8CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_0-1697044301686.png" alt="mmarchandTSI_0-1697044301686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Choose the worksheets you want and make sure the data preview looks right.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_1-1697044403585.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57471i4BFDAA3718A10EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_1-1697044403585.png" alt="mmarchandTSI_1-1697044403585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After import, open the "Source" table script from one of the newly-created tables and copy it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_2-1697044561713.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57472i7AE3AD534E644317/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_2-1697044561713.png" alt="mmarchandTSI_2-1697044561713.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Adapt that script for the For Each() function by replacing the absolute path with the val variable and inserting the list of desired worksheets into the proper parentheses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that all makes sense.&amp;nbsp; If you still have issues with it, please post the error message.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:22:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/685979#M87195</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-11T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multi File Import Certain Tabs and Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/686051#M87203</link>
      <description>&lt;P&gt;Ok. That got me much closer! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 18:18:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-File-Import-Certain-Tabs-and-Columns/m-p/686051#M87203</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2023-10-11T18:18:19Z</dc:date>
    </item>
  </channel>
</rss>

