Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Custom Function being called when it shouldn't.
Sorry chaps,
In both instances of the below the equals should be < as I had changed it to equals to debug. This gist of it is, if the active sheet isn't the sheet with the function in then it exits the function. If ActiveSheet.Name = "Standard Dev" Then Exit Function End If Ron |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Custom Function being called when it shouldn't.
set rng = Application.Caller
if rng.Parent.Name < Activesheet.Name then exit Function However, this doesn't stop your function from being reevaluated, even if only partially, - and would return a value of zero. Better would be to find out why it is being recalculated when you think it shouldn't. -- Regards, Tom Ogilvy "Ron" wrote in message 10.200... Sorry chaps, In both instances of the below the equals should be < as I had changed it to equals to debug. This gist of it is, if the active sheet isn't the sheet with the function in then it exits the function. If ActiveSheet.Name = "Standard Dev" Then Exit Function End If Ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is this function called?? | Excel Discussion (Misc queries) | |||
How can I find the last time a custom function is called ? | Excel Programming | |||
XLA function called twice | Excel Programming | |||
Using a Custom Function - determining the row that called it | Excel Programming | |||
Possible to know who has called a function ? | Excel Programming |