View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Charles Williams Charles Williams is offline
external usenet poster
 
Posts: 968
Default xll worksheet function

Excel's default calculation sequence is to calculate the last cell entered
first (LIFO) and so on.

Note that VBA functions calculate much slower in Automatic mode than when in
manual and calculation is initiated from VBA (this is a VBE refresh bug).
see http://www.DecisionModels.com/Calcsecretsj.htm

It would be very interesting to get a timing comparison in manual using
Application.calculate.

Charles Williams
Decision Models

"RB Smissaert" wrote in message
...
Been playing with UDF's in .xll add-ins and found that these are indeed
much faster than VBA UDF's.
In a moderately complex math function I found it about 30 times faster.

Just one thing I don't quite understand:
I have the xll function in B1 and the VBA function in C1
Now I copy both down to row 65536.
All cells in column B are calculatated in about 1 second,
except cell B1, which is done last. This is done after the last cell in
column C is done.
Swapping the columns (XLL in C and VBA in B) makes no difference.

Any suggestions why this and if anything can be done about it?

RBS