Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Detect when a UDF is being edited in the Function Wizard

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Detect when a UDF is being edited in the Function Wizard

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Detect when a UDF is being edited in the Function Wizard

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use function edited in VBA in excel sheet kelly Excel Discussion (Misc queries) 1 October 30th 07 03:10 AM
Can I use a function to detect whether a cell is highlighted? Martin Williams Excel Worksheet Functions 2 January 23rd 06 11:51 AM
Excel 2003: can I insert a "last edited" date function? KTK Excel Worksheet Functions 1 June 27th 05 11:59 PM
"Query cannot be edited by the Query Wizard" PancakeBatter Excel Discussion (Misc queries) 0 April 25th 05 05:59 PM
Is there a function to detect changes in any given cell? Detecting Cell Value Changes Excel Worksheet Functions 1 January 2nd 05 11:16 PM


All times are GMT +1. The time now is 06:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"