C
Charles Williams
Hi Robin,
I do not know of a way to stop excel evaluating a formula as it is entered
(apart from fill which I do not think will help you).
Some ideas for exiting the UDF when it is you inserting it:
if application.caller.formula="" then exit function
or
if application.caller.formula like "=*Myfunc(*)*" then exit function
or put a hidden name in the workbook =true when you are inserting and =false
after you have inserted, and check that in the function.
Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com
I do not know of a way to stop excel evaluating a formula as it is entered
(apart from fill which I do not think will help you).
Some ideas for exiting the UDF when it is you inserting it:
if application.caller.formula="" then exit function
or
if application.caller.formula like "=*Myfunc(*)*" then exit function
or put a hidden name in the workbook =true when you are inserting and =false
after you have inserted, and check that in the function.
Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com