LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default VBA functions - faster than worksheet formulas?

Its very difficult to answer your question: the timing difference is highly
dependent on:

- what kind of function you are creating
- how you code the VBA UDF
- how calculation is initiated
- the state of the VBE environment

but in general a VBA UDF will be slower than a native excel function unless
the VBA UDF implements an algorithm/method which is superior to the native
function.

Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"MrShorty" wrote in
message ...

General concensus is that UDF's are slower in terms of calculation time
than native Excel functions. My observation (on a 450 MHz machine) is
that the longer calculation time is imperceptible. At 100 MHz, it was
a perceptible difference, but was never significant.

If this is a one time thing, and you'ave already got the spreadsheet
built and debugged, it's not to your advantage to re-do the formula as
a VBA function.

As an open question to the group: Does anyone have an estimate of how
much longer it takes for Excel to calculate a UDF versus using native
functions for the same calculation?


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile:
http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=472454



 
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 2002 : Any faster way for linking formulas between pages ? Mr. Low Excel Discussion (Misc queries) 0 March 29th 07 03:48 PM
Faster way to duplicate worksheet with sequence ??? [email protected] Excel Discussion (Misc queries) 1 January 11th 06 03:15 AM
Can faster CPU+larger/faster RAM significantly speed up recalulati jmk_li Excel Discussion (Misc queries) 2 September 28th 05 10:24 AM
Zero Values in worksheet functions/formulas. Carnadyne Excel Worksheet Functions 4 September 22nd 05 09:19 AM
Lag functions or faster code Frank Fuller Excel Programming 1 October 16th 03 05:17 PM


All times are GMT +1. The time now is 09:34 AM.

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"