Test if Function is Run from worksheet or from VBA
Try commenting out the function and see if you get a code error or bad
references.
Andibevan wrote:
Is there any way I can test whether a function has been called because it is
used in a cell, or whether it is called from code?
|