The 'Export to Excel' model tool mentioned here: http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/08/10/Working-with-Microsoft-Excel-in-Arc... and available here: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=95009B25-1422-2418-7FB5-B8638... doesn't work with ArcGIS 10, as it relies on the old arcgisscripting library. I have fixed it up to use the new arcpy package, attached.
Remember you will need to download and install the xlwt package, available http://pypi.python.org/pypi/xlwt, for Python to be able to export to Xls. If your Xlwt installation fails, check out my post in this thread: http://forums.arcgis.com/threads/34418-Is-it-possible-to-install-other-Python-distributions-on-top-o....
I have only tested it on one file, and haven't tested the CSV output, so let me know if you have any issues.
The tool did not immediately work for me.
I get:
Traceback (most recent call last):
File "C:\Users\rob\Documents\ArcGIS\RobToolBoxes\Scripts\tabletoexcel.py", line 85, in <module>
export_to_xls(dataset_name, output_file)
File "C:\Users\rob\Documents\ArcGIS\RobToolBoxes\Scripts\tabletoexcel.py", line 58, in export_to_xls
worksheet = workbook.add_sheet(os.path.split(dataset)[1])
File "C:\Python26\ArcGIS10.0\lib\site-packages\xlwt\Workbook.py", line 345, in add_sheet
raise Exception("invalid worksheet name %r" % sheetname)
Exception: invalid worksheet name u'ACS_TransportGreaterPortland_byCBG'
Completed script TableToExcel...
Failed to execute (TableToExcel).
Failed at Wed May 29 12:02:05 2013 (Elapsed Time: 9.00 seconds)
worksheet = workbook.add_sheet(os.path.split(dataset)[1])
worksheet = workbook.add_sheet(os.path.split(dataset)[1][:31])
Does anyone have suggestions for tweaking the export feature to allow creation of multiple sheets within a single workbook? I
I am looking for a solution to this issue as well.
Is it possible to append multiple attribute tables into a single worksheet? Or will this re-write the worksheet each time it's called?
The 'Export to Excel' model tool mentioned here: http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/08/10/Working-with-Microsoft-Excel-in-Arc... and available here: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=95009B25-1422-2418-7FB5-B8638... doesn't work with ArcGIS 10, as it relies on the old arcgisscripting library. I have fixed it up to use the new arcpy package, attached.
Remember you will need to download and install the xlwt package, available http://pypi.python.org/pypi/xlwt, for Python to be able to export to Xls. If your Xlwt installation fails, check out my post in this thread: http://forums.arcgis.com/threads/34418-Is-it-possible-to-install-other-Python-distributions-on-top-o....
I have only tested it on one file, and haven't tested the CSV output, so let me know if you have any issues.
My original dbf table has ca. 2mio. points. Excel loads just ca. 1.04mio. What can i do?
Most likely you are hitting the limit of Excel. Can you split your dbf in half and read in each half separately? Once you get them into a data set (assuming a file GDB) append them back together.
I figured out that Editor or Notepad etc. is able to load them all at once .... quick and easy to edit a txt file, which i needed for building a dtm in cad.