If the Excel workbook/sheet is only used from store data (no complicated
formula/calculation applied to particular cells), you can use DAO/ADO to
read/write data to Excel WorkBook/Sheet. It is very fast, no Excel
Auotmation is requred, which is the main cause of slowness.
"GTVic" <nospam@address.withheld> wrote in message
news:22460158.1112308770824.JavaMail.jive@jiveforu m1.autodesk.com...
This is a separate issue but ... If you are controlling Excel from
AutoCAD
VBA and pumping a lot of data into a workbook you may find that the
transfer
of that data is taking an enormous amount of time because of the
inter-process communication delays.
If that is the case you may want to export the data to Excel in a
different way and that may also solve the problem you are currently
having.
Here is what I did that reduced an export from several minutes to just a
few seconds.
#1 - In AutoCAD VBA collect all the data and write to a temporary file.
#2 - Launch a blank Excel spreadsheet that has an Autoexec macro
The autoexec macro has the responsibility to detect the temporary file
and
load the data into a second workbook and then save the second workbook and
close itself (ie. the first workbook containing the autoexec macro). All
this is done independantly of AutoCAD so there are no timing issues.