LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Slow sheet data entry?

Mickey
VBA/Excel interaction is often slow and its often best to avoid using the
calculate event for that reason.
presumably if you set calc to manual via the menus everything is fine?
You could try managing the calc state from other sheet events like activate.
or find a better way to move your array data into the cells - do you really
need to do that evey time the sheet is calculated?
its hard to give precise advice without seeing the full code.
I'm not totally clear where each bit of your code is and how often it gets
fired, if you post some more I'll try and help more
cheers
simon
Blog:
www.smurfonspreadsheets.net
Corporate:
www.codematic.net
Excel development, support and training


"mickey" wrote in message
...
I've written a UDF that transfers data from a VBA array to a worksheet (
the
data is ultimately used as source data for a "Bar" chart.

The data transfer is painfully slow, one can watch the 50 cells update one
at a time approximately every second.

The routine which performs the transfer is called from the "Calculate
Event". In an effort to improve the transfer rate, I have included the
following code:
Do
Loop Until Application.CalculationState = xlDone' Wait for any
calculations
to finish.
Application.EnableEvents = False ' To prevent re-calculation before the
entire transfer is complete. (Events are re-enabled at the completion of
the
transfer.

The code above has had no effect on the transfer rate.

I noted that the "Bar" graph tries to update as each item is entered.
Assuming that this could slow things down I tried to disable the chart
during
the transfer with the following code:

WorkSheets(1).ChartObjects(1).Enabled = False

Interesting this did not stop the chart from updating with each cell
transfer. I would have thought this would have suspended the chart from
changing until the transfer was completed, at which time the chart would
update when re-enabled. I did confirm that I was addressing the chart by
changing the "Enabled" property to "Visible" and indeed the chart became
invisible during the transfer and re-appeared when the transfer was
complete.
However, this did not effect the transfer rate either.

There definitely appears to be background processing continuing regardless
of the "EventEnabled" state. I would appreciate any insight to the
problem,
or suggestions.

Thanks.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
data entry and saves it to sheet 2 YOUNGIN New Users to Excel 1 September 22nd 06 11:40 PM
data entry and saves it to sheet 2 YOUNGIN New Users to Excel 1 September 22nd 06 10:21 PM
Data entry too slow even with calc set to manual [email protected] Excel Discussion (Misc queries) 1 September 22nd 06 11:00 AM
data entry in Excel slow woodingthorpe-smythe Excel Discussion (Misc queries) 1 March 4th 05 03:33 AM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"