<?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: Export data tables to Excel without column name in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219504#M43933</link>
    <description>&lt;P&gt;Thank you for your reply. I think I need to submit these requirement to JMP Wish List :(&lt;/img&gt;&lt;/P&gt;&lt;P&gt;Because I have to save the "cell color" as well as the data itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 05:03:08 GMT</pubDate>
    <dc:creator>solpark</dc:creator>
    <dc:date>2019-08-01T05:03:08Z</dc:date>
    <item>
      <title>Export data tables to Excel without column name</title>
      <link>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219256#M43889</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;I'm trying to save data tables as excel format (.xlsx) without column names. I've already changed the preferences, but it still does not work. (I mean the data tables are saved with column names)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Preference( Export settings);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="2"&gt;Preferences(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Export Settings(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;End Of Line( CRLF ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;End Of Field( CSV( 1 ) ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;Export Table Headers( 0 ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Quote all column names( 0 ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Quote all character values( 0 ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Quote all numeric values( 0 )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I tried the following two ways to save my data tables:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Save AS(Path||"Test.xlsx", Excel File);&amp;nbsp;&amp;nbsp;//&amp;nbsp;dt&amp;nbsp;=&amp;nbsp;DataTable(Table_1[1]);&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Create Excel Workbook(Path||"Test.xlsx", Table_1, Table_2); 
// Table_1 &amp;amp; 2 are lists of data table names&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="3"&gt;Please let me know if I'm missing something.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 05:48:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219256#M43889</guid>
      <dc:creator>solpark</dc:creator>
      <dc:date>2019-07-31T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export data tables to Excel without column name</title>
      <link>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219272#M43896</link>
      <description>&lt;P&gt;So those export settings appear to only affect .txt files.&amp;nbsp; You could export as txt and then change it to csv, but that's the best I could find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt_a = open("$SAMPLE_DATA\Abrasion.jmp");

dt &amp;lt;&amp;lt; Save("$DESKTOP/Example.txt");
rename file("$DESKTOP/Example.txt","Example.csv");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you wanted multiple sheets in a workbook you could then reimport it with column headers (as the values and then save).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt_a = open("$SAMPLE_DATA\Abrasion.jmp");

dt &amp;lt;&amp;lt; Save("$TEMP/Example1.txt");
dt_a &amp;lt;&amp;lt; Save("$TEMP/Example2.txt");

dt_no_headers = open("$TEMP/Example1.txt");
dt_a_nh = open("$TEMP/Example2.txt");
Create Excel Workbook(
	"$DESKTOP\MyWorkbook.xlsx",
	{dt_no_headers, dt_a_nh},
	{"Big", "Abrasive"}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not a great solution.&amp;nbsp; Might be worth adding export preferences for other file types in the&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/idb-p/jmp-wish-list" target="_self"&gt;JMP Wish List&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:47:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219272#M43896</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-07-31T11:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export data tables to Excel without column name</title>
      <link>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219504#M43933</link>
      <description>&lt;P&gt;Thank you for your reply. I think I need to submit these requirement to JMP Wish List :(&lt;/img&gt;&lt;/P&gt;&lt;P&gt;Because I have to save the "cell color" as well as the data itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 05:03:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219504#M43933</guid>
      <dc:creator>solpark</dc:creator>
      <dc:date>2019-08-01T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export data tables to Excel without column name</title>
      <link>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219775#M43971</link>
      <description>&lt;P&gt;Another workaround that would probably be a little better would be to just set the name of the columns the values of the first row.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still not great, but eh.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dts = {};
dts[1] = open("$SAMPLE_DATA\Big Class.jmp");
dts[2] = open("$SAMPLE_DATA\Abrasion.jmp");

for(i=1, i&amp;lt;=nitems(dts), i++, 
	dt = dts[i];
	items = dt[1, 0];
	dt &amp;lt;&amp;lt; Delete Rows(1);
	for(k=1, k&amp;lt;=ncols(dt), k++, 
		Column(dt, k) &amp;lt;&amp;lt; Set Name(char(items[k])); // you'll have to do something to deal with dates
	)
);
Create Excel Workbook(
	"$DESKTOP\MyWorkbook.xlsx",
	dts,
	{"Big", "Abrasive"}
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:11:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-data-tables-to-Excel-without-column-name/m-p/219775#M43971</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-08-01T17:11:47Z</dc:date>
    </item>
  </channel>
</rss>

