<?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 Error opening excel file when using path variable. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Error-opening-excel-file-when-using-path-variable/m-p/846164#M102082</link>
    <description>&lt;P&gt;Trying to open an excel file using the path variable "$Input_File" as below. When I run the script I receive an evaluation error. The script works fine when I execute the script with the file path itself rather than using the path variable. Can anybody suggest why this happens and how to resolve? Using JMP Pro 17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Path Variable("Input_File", Pick File());
&lt;BR /&gt;dt = Open(
	"$Input_File",
	Worksheets({"Experiment Details"}),
	Use for all sheets( 0 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 1 ),
	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( 2 ),
		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( "-" )
	)
	);
dt &amp;lt;&amp;lt; Set Name("Exp_Details_1.jmp");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Mar 2025 14:03:50 GMT</pubDate>
    <dc:creator>CentroidError56</dc:creator>
    <dc:date>2025-03-05T14:03:50Z</dc:date>
    <item>
      <title>Error opening excel file when using path variable.</title>
      <link>https://community.jmp.com/t5/Discussions/Error-opening-excel-file-when-using-path-variable/m-p/846164#M102082</link>
      <description>&lt;P&gt;Trying to open an excel file using the path variable "$Input_File" as below. When I run the script I receive an evaluation error. The script works fine when I execute the script with the file path itself rather than using the path variable. Can anybody suggest why this happens and how to resolve? Using JMP Pro 17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Path Variable("Input_File", Pick File());
&lt;BR /&gt;dt = Open(
	"$Input_File",
	Worksheets({"Experiment Details"}),
	Use for all sheets( 0 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 1 ),
	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( 2 ),
		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( "-" )
	)
	);
dt &amp;lt;&amp;lt; Set Name("Exp_Details_1.jmp");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2025 14:03:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-opening-excel-file-when-using-path-variable/m-p/846164#M102082</guid>
      <dc:creator>CentroidError56</dc:creator>
      <dc:date>2025-03-05T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening excel file when using path variable.</title>
      <link>https://community.jmp.com/t5/Discussions/Error-opening-excel-file-when-using-path-variable/m-p/846195#M102085</link>
      <description>&lt;P&gt;You need to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;file = get path variable("Input_File")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get the value set from the Pick File.&lt;/P&gt;
&lt;P&gt;Then use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(
	file,
	Worksheets({"Experiment Details"}),
	Use for all sheets( 0 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 1 ),
	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( 2 ),
		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( "-" )
	)
	);
dt &amp;lt;&amp;lt; Set Name("Exp_Details_1.jmp");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2025 14:17:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-opening-excel-file-when-using-path-variable/m-p/846195#M102085</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-03-05T14:17:24Z</dc:date>
    </item>
  </channel>
</rss>

