Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone know how to detect when a UDF is being edited in the
Function Wizard? I need to know because my function takes a long time to calculate, so I want to switch off calculation attempts until data entry is complete. My idea is that if I know the Function Wizard is active then I can just skip the calculation. I have already tried looking at Application.Caller but this seems to return a range whether in the Function Wizard or not. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can't (to the best of my knowledge). If this is not a volitile function
then changing the calulation setting should not make a big difference to the speed (unless you are changing the parameters of the function frequently, or copying the function), and you would not be able to catch that anyway. -- HTH... Jim Thomlinson " wrote: Does anyone know how to detect when a UDF is being edited in the Function Wizard? I need to know because my function takes a long time to calculate, so I want to switch off calculation attempts until data entry is complete. My idea is that if I know the Function Wizard is active then I can just skip the calculation. I have already tried looking at Application.Caller but this seems to return a range whether in the Function Wizard or not. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Charles Williams posted a suggestion from Alex Koenig that seems to work ok:
Option Explicit Function YourFunctionHere(whatever as whatever) If (Not Application.CommandBars("Standard").Controls(1).En abled) Then Exit Function End If 'rest of function here End Function It looks at the toolbar to see if you're in the wizard. (Try it and you'll see lots of icons are disabled.) wrote: Does anyone know how to detect when a UDF is being edited in the Function Wizard? I need to know because my function takes a long time to calculate, so I want to switch off calculation attempts until data entry is complete. My idea is that if I know the Function Wizard is active then I can just skip the calculation. I have already tried looking at Application.Caller but this seems to return a range whether in the Function Wizard or not. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use function edited in VBA in excel sheet | Excel Discussion (Misc queries) | |||
Can I use a function to detect whether a cell is highlighted? | Excel Worksheet Functions | |||
Excel 2003: can I insert a "last edited" date function? | Excel Worksheet Functions | |||
"Query cannot be edited by the Query Wizard" | Excel Discussion (Misc queries) | |||
Is there a function to detect changes in any given cell? | Excel Worksheet Functions |