Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default C# worksheet function poor performance

Hi
I've written a simple worksheet function in C#. there is no shim, just .net.
The function takes an excel range and loops through each cell and is very
slow, something like 200 times slower than the Excel equivalent or the vba
equivalent.

The code is on another machine but is basically

public double TheFunction( Range rngList){
for(long i = rngList.Rows.Count; i0; i--)
// do some simple adding (using range.value2 etc and finish

I was wondering if accessing the range inside the loop was the problem, or
has anyone got any suggestions?

cheers
Simon
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
Very poor performance with Excel 2007 RossR Excel Discussion (Misc queries) 3 March 29th 07 12:12 AM
Performance in excel 97 is poor cctd Excel Discussion (Misc queries) 1 January 5th 06 03:12 PM
Poor Worksheet Performance (for Mike Malachy) Mark D'Agosta Excel Programming 0 April 5th 04 11:21 PM
poor subroutine performance Alex East Excel Programming 1 February 27th 04 06:39 PM
Poor Worksheet Performance MD Excel Programming 6 August 5th 03 03:41 PM


All times are GMT +1. The time now is 01:00 AM.

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

About Us

"It's about Microsoft Excel"