Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default calculateing cells on demand

What is the best way to make sure I have control overwhen cells are
calculated?

I have some very long running calculations and would like postpone
them until all the pre-conditions are setup.

I could use a boolean flag in an if statement but how do I do that
better inside of my UDF function?

Lars

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default calculateing cells on demand

This is what I do for my own use often even with Arrayformulas using built in
functions:

Public function ABC(rng as Range)
if Range("AB1") = 1 then
ABC = "Pending"
exit sub
End if
End Function

Put a 1 in AB1 when you don't want it to calculate.

--
Regards,
Tom Ogilvy



"Lars Schouw" wrote:

What is the best way to make sure I have control overwhen cells are
calculated?

I have some very long running calculations and would like postpone
them until all the pre-conditions are setup.

I could use a boolean flag in an if statement but how do I do that
better inside of my UDF function?

Lars


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
Patient Demand on X Day of the Month DOUG Excel Discussion (Misc queries) 4 April 7th 10 07:25 PM
Demand Loading of COM Add-In MarkandJK Excel Programming 0 November 27th 06 04:22 PM
demand planning templates Mojtaba Andalib Excel Worksheet Functions 0 September 28th 06 11:15 AM
calculateing n1kk1 Excel Discussion (Misc queries) 1 June 7th 06 12:34 PM
Refresh Excel cells on demand Roland Excel Programming 3 March 10th 06 11:01 PM


All times are GMT +1. The time now is 05:52 PM.

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"