Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Too much recalculation

I have written several custom functions for a worksheet.
I don't want these functions to recalculate every time.
I only want a recalculation when the referenced cells
change. In my functions, I put the line:

Application.Volatile (False)

But when I run my code, even if the code is not
activating the worksheets with the custom functions, the
functions insist on recalculating. Is there any way I
can stop this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Too much recalculation

Hi
you may post your function but normally removing the line
application.volatile should do (depending on your function parameters)

--
Regards
Frank Kabel
Frankfurt, Germany


Diane Meade wrote:
I have written several custom functions for a worksheet.
I don't want these functions to recalculate every time.
I only want a recalculation when the referenced cells
change. In my functions, I put the line:

Application.Volatile (False)

But when I run my code, even if the code is not
activating the worksheets with the custom functions, the
functions insist on recalculating. Is there any way I
can stop this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Too much recalculation

You can remove the Application.Volatile line, but you then need to
ensure that all the cell references are in the function arguments, e.g.:


Public Function foo(arg1, arg2, arg3)


call as

=foo(A1, B2, C3)





In article ,
"Diane Meade" wrote:

I have written several custom functions for a worksheet.
I don't want these functions to recalculate every time.
I only want a recalculation when the referenced cells
change. In my functions, I put the line:

Application.Volatile (False)

But when I run my code, even if the code is not
activating the worksheets with the custom functions, the
functions insist on recalculating. Is there any way I
can stop this?

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
Recalculation A Bauer Excel Discussion (Misc queries) 1 March 7th 07 10:01 PM
recalculation shmilo Excel Discussion (Misc queries) 1 February 13th 07 02:40 PM
Recalculation workerboy Excel Worksheet Functions 3 May 15th 06 06:14 PM
Recalculation R Ormerod Excel Discussion (Misc queries) 5 March 19th 06 08:54 AM
Recalculation Anna[_6_] Excel Programming 1 May 24th 04 11:15 PM


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