Geoprocessing tool that converts a table to a Microsoft Excel file.
Table To Excel converts only to Microsoft Excel 5.0/95 Workbook (.xls) format.
The input cannot exceed the 65535 rows limit of the .xls file format.
| Parameter | Explanation |
|---|---|
| Input_Table |
The table to be converted to Microsoft Excel format. |
| Output_Excel_File |
The output Microsoft Excel file. |
| Use_field_alias_as_column_header (Optional) |
How column names in the output are determined.
|
| Use_domain_and_subtype_description (Optional) |
Controls how values from subtype fields or fields with a coded value domain are transferred to the output.
|
TableToExcel example (Python window)
The following Python window script demonstrates how to use the TableToExcel function in immediate mode.
import arcpy
arcpy.env.workspace = "c:/data"
arcpy.TableToExcel_conversion("gdb.gdb/addresses", "addresses.xls")
TableToExcel example 2 (stand-alone script)
Converts a table to a Microsoft Excel workbook.
# Name: TableToExcel_2.py
import arcpy
# Set environment settings
arcpy.env.workspace = "c:/data"
# Set local variables
in_table = "gdb.gdb/addresses"
out_xls = "addresses.xls"
# Execute TableToExcel
arcpy.TableToExcel_conversion(in_table, out_xls)
There are no tags for this item.
There are no credits for this item.
There are no use limitations for this item.