<?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: Excel To Table Tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412746#M32493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tool validation could list the sheets in the Excel file and populate a dropdown box:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; xlrd
excel_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\ExcelInTBX\myExcelFile.xlsx'&lt;/SPAN&gt;
xls &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; xlrd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;open_workbook&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;excel_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

sheet_names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sheet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; sheet &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; xls&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sheets&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:43:47 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2021-12-11T18:43:47Z</dc:date>
    <item>
      <title>Excel To Table Tool</title>
      <link>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412743#M32490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Excel To Table tool is really handy, especially with various drivers being all over the map between 32 bit ArcMap and 64 bit ArcGIS Pro&amp;nbsp;&amp;amp; MS Office 2016 blah blah blah...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, when one deploys to the tool, it is smart enough to provide a list of worksheets that are within the excel file you enter as the first argument.&amp;nbsp; (See attached image).&amp;nbsp; I'd like to add the tool to a script tool; is there a way to mimic the intelligence of the original tool in my script tool and get the list of possible sheet names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412743#M32490</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-16T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel To Table Tool</title>
      <link>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412744#M32491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which begs the question Joe ... why not use the tool itself&lt;/P&gt;&lt;P&gt;If you are producing your own incarnation, then it would be an optional parameter which is 'dependent' on the input excel file.&amp;nbsp; I don't know if 3rd party files allow for dependency like you can do it when you want to select fields from a featureclass table. &amp;nbsp;&lt;/P&gt;&lt;P&gt;You might want to show how your toolbox tool parameters are set up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412744#M32491</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-16T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel To Table Tool</title>
      <link>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412745#M32492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some excel worksheets that hold table definitions for a new geodatabase. I have worked out workflow such that if I get the excel worksheets into a table, I can then iterate through the the table, and add those fields to yet another table, rather than copying and pasting or worse yet re-entering field names and types into a new table.&amp;nbsp;At this stage of the project, the Excel table definitions are subject to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, just after my initial post, I added the Dependency to the in_excel_file, but that's not quite enough:&amp;nbsp; in the Data Type column I added Data Element.&amp;nbsp; It's not as slick as the tool itself, but it does allow the user to navigate to the in_excel_file and pick the appropriate worksheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="401581" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/401581_pastedImage_1.png" style="width: 620px; height: 511px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="401582" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/401582_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 21:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412745#M32492</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-16T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel To Table Tool</title>
      <link>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412746#M32493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tool validation could list the sheets in the Excel file and populate a dropdown box:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; xlrd
excel_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\ExcelInTBX\myExcelFile.xlsx'&lt;/SPAN&gt;
xls &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; xlrd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;open_workbook&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;excel_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

sheet_names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sheet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; sheet &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; xls&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sheets&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excel-to-table-tool/m-p/412746#M32493</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T18:43:47Z</dc:date>
    </item>
  </channel>
</rss>

