<?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 Select a table to use when calling TableToExcel() in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-a-table-to-use-when-calling-tabletoexcel/m-p/354946#M15650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I get the current open table names in ArcGIS to use with the&amp;nbsp;TableToExcel() function? Its not easy to find. This is the current table that is visible when im using the gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 22:57:37 GMT</pubDate>
    <dc:creator>VincentFuller</dc:creator>
    <dc:date>2016-11-30T22:57:37Z</dc:date>
    <item>
      <title>Select a table to use when calling TableToExcel()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-a-table-to-use-when-calling-tabletoexcel/m-p/354946#M15650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I get the current open table names in ArcGIS to use with the&amp;nbsp;TableToExcel() function? Its not easy to find. This is the current table that is visible when im using the gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 22:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-a-table-to-use-when-calling-tabletoexcel/m-p/354946#M15650</guid>
      <dc:creator>VincentFuller</dc:creator>
      <dc:date>2016-11-30T22:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select a table to use when calling TableToExcel()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-a-table-to-use-when-calling-tabletoexcel/m-p/354947#M15651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want table tables, and not feature class tables, that are loaded into an ArcGIS Pro project:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
table_names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;table&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; map &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; table &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listTables&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the code above will create a list of table names, having a list of table names or Table objects still doesn't fully address the issue, at least within the interactive Python window.&amp;nbsp; The interactive Python window in ArcGIS Pro appears to be scoped within Maps so passing the table name from another Map will generate an error.&amp;nbsp; I hadn't run into this issue before, somewhat surprisingly, so I will have to dig into it a bit more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-a-table-to-use-when-calling-tabletoexcel/m-p/354947#M15651</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T16:38:22Z</dc:date>
    </item>
  </channel>
</rss>

