Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
function calls
Hi all
What is the logic behind the number of times a function is called? A simple example to illustrate: Function add(a, b) MsgBox ("add") add = a + b End Function In the worksheet I have: A1: 1 A2: 2 A3: =add(A1;A2) If I change the value in cell A1, the function runs 3 times. Why? Is it possible to force a certain function to run only once? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
function calls
Only runs once for me.
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Claude" wrote in message ... Hi all What is the logic behind the number of times a function is called? A simple example to illustrate: Function add(a, b) MsgBox ("add") add = a + b End Function In the worksheet I have: A1: 1 A2: 2 A3: =add(A1;A2) If I change the value in cell A1, the function runs 3 times. Why? Is it possible to force a certain function to run only once? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
function calls
Just realised my file had a reference to an external
object library. Looks like this was messing things up. Thanks for helping me further! -----Original Message----- Only runs once for me. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Claude" wrote in message ... Hi all What is the logic behind the number of times a function is called? A simple example to illustrate: Function add(a, b) MsgBox ("add") add = a + b End Function In the worksheet I have: A1: 1 A2: 2 A3: =add(A1;A2) If I change the value in cell A1, the function runs 3 times. Why? Is it possible to force a certain function to run only once? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
using strings in vlookup function calls | Excel Worksheet Functions | |||
Calls per Day | Excel Discussion (Misc queries) | |||
XLA calls dll | Excel Programming | |||
Macro Calls | Excel Programming | |||
VBA Calls | Excel Programming |