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: 1
Default Custom Functions in C/C++ against in VBA

Hi All

I have written a couple of custom functions for use in Excel using VBA
Whilst the time taken to execute them individually is not awfully long
when I have reasonably extensive use of them in any workboo
particularly when the search array is reasonably big, say of the orde
of 2000 rows by 10 columns, there is a noticeable drop in th
recalculation time.

I am advised that this is more than likely due to the overhead of usin
VBA or the premium you pay for writing them in VBA (for the ease o
coding in VBA particularly in the handing of variant data types
against writing them in C++ or C for that matter.

If this is the case, I would like to rewrite these functions in C (
can program in C relatively OK).

I would need to read a range of cells from a worksheet and transfer th
cell contents in to an array of variants. I would now need to pass thi
array just created to a C function that I would call from another VB
custom function - the idea being to do the processing of data in
rather than in VBA with the called C function returning a doubl
values.

Any assistance shall be highly valued.


Best regards



Deepak Agarwa

--
Message posted from http://www.ExcelForum.com

 
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
Custom functions GKW in GA Excel Discussion (Misc queries) 3 February 20th 08 02:16 PM
Custom Functions DTTODGG Excel Worksheet Functions 7 January 11th 08 07:37 PM
Custom Functions Sloth Excel Discussion (Misc queries) 5 July 25th 06 04:59 PM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM
Custom Functions [email protected] Excel Programming 2 May 6th 04 08:33 PM


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