Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Add-In performance problem


Hello!

I'm writing an Add-In for Excel in Borland C++ Builder 6.0. It's a DL
library that creates some command bar, buttons and handles events fire
by these buttons. The version of Excel I'm using is Microsoft Exce
2003.

I'M OBSERVING SERIOUS SLOWDOWN WHEN DOING SEVERAL RECALCULATIONS OF A
EXCEL SHEET

The method I'm calling from button event handler does following:
- disables automatic recalculation
- disables updating the screen

for (int i=0; i< 1500; i++) {
sheet-get_Range(TVariant("s4")
EmptyParam)-set_Value(TVariant(i));
sheet-Calculate();
d = sheet-get_Range(TVariant("s4")
EmptyParam)-get_Value().dblVal;
}

1500 iterations take about: 1111ms
3000 iterations take about: 3765ms
And if I run 1500 + 1500 iterations I get something like: 1091ms
2614ms = 3705ms

Can anybody help me how to solve this problem?

Thank you, Joseph

--
jbici
-----------------------------------------------------------------------
jbicik's Profile: http://www.excelforum.com/member.php...fo&userid=1655
View this thread: http://www.excelforum.com/showthread.php?threadid=31412

Reply
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
excel sub-par performance [email protected] Excel Discussion (Misc queries) 2 August 28th 08 05:45 PM
Excel performance calculation JE McGimpsey Excel Worksheet Functions 3 July 19th 06 03:37 AM
can i set up "up and down" performance arrows from excel? Ben @ gluon Setting up and Configuration of Excel 1 October 8th 05 02:07 AM
Performance problem whem McAfee is running Carl L Excel Discussion (Misc queries) 0 August 24th 05 11:04 AM
problem with performance of excel macro, pls help lee777[_2_] Excel Programming 1 June 18th 04 11:47 AM


All times are GMT +1. The time now is 01:39 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"