PC Review


Reply
Thread Tools Rate Thread

Calculate and UDF

 
 
Chris
Guest
Posts: n/a
 
      3rd Oct 2007
I have 2 UDF that I use in roughly 100 cells over 6 worksheets.

Originally I had Application.Volatile within the UDF's themselves, but
this made the entire workbook unresponsive whenever one value changed.
Now that I've removed it I want to add a button to one of the
worksheets with the following code

Private Sub CalculateButton_Click()
Dim evalArr() As String
Dim i As Long
evalArr = getDefinitionList("Evaluators")
For i = 1 To UBound(evalArr)
Worksheets(evalArr(i)).Calculate
Next i
End Sub

However this doesn't update the UDF's like they should.

What am I missing?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      3rd Oct 2007
Perhaps you could post the code for your UDF. We might be able to make it
smart calc and avoid the whole button issue all together.
--
HTH...

Jim Thomlinson


"Chris" wrote:

> I have 2 UDF that I use in roughly 100 cells over 6 worksheets.
>
> Originally I had Application.Volatile within the UDF's themselves, but
> this made the entire workbook unresponsive whenever one value changed.
> Now that I've removed it I want to add a button to one of the
> worksheets with the following code
>
> Private Sub CalculateButton_Click()
> Dim evalArr() As String
> Dim i As Long
> evalArr = getDefinitionList("Evaluators")
> For i = 1 To UBound(evalArr)
> Worksheets(evalArr(i)).Calculate
> Next i
> End Sub
>
> However this doesn't update the UDF's like they should.
>
> What am I missing?
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate time does not calculate Wanna Learn Microsoft Excel Misc 2 18th Aug 2008 03:40 PM
Activesheet.Calculate failing to calculate =?Utf-8?B?RGFuaWVsIEJvbmFsbGFjaw==?= Microsoft Excel Programming 2 11th Oct 2006 03:16 AM
Spreadsheet says CALCULATE when there is nothing to calculate axw Microsoft Excel Worksheet Functions 3 14th Jun 2004 02:11 PM
How to calculate hide records while calculate their totals Ty Archer Microsoft Access Reports 1 4th Dec 2003 01:29 AM
Macro that hide or unhide and not calculate or calculate Jonsson Microsoft Excel Programming 1 19th Aug 2003 04:22 PM


Features
 

Advertising
 

Newsgroups
 


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