Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
custom function doesn't update value when source value changes
i seem to remember that there needs to be some line of code addied for this
to occur thanks in advance, mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
custom function doesn't update value when source value changes
Application.Volatile
This MAY help. -- Gary''s Student - gsnu200789 "Mark Kubicki" wrote: i seem to remember that there needs to be some line of code addied for this to occur thanks in advance, mark |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
custom function doesn't update value when source value changes
There are 2 ways to make a user defined function update. The one you are
thinking of is adding Application.Volatile to the function. This means that the function will recalculate every time a calculation runs anywhere. There is a lot of overhead added by doing this. The other method is to add the appropriate range arguments to your funtion something like this Public Function MySum (byval SumRange as range) as double MySum = Application.sum(sumrange) end Function Now if you use it in a spreadsheet something like this... =MySum(A1:A10) any changes to the range A1:A10 will trigger this function to recalculate. This is a much better method than making the funciton volatile... -- HTH... Jim Thomlinson "Mark Kubicki" wrote: i seem to remember that there needs to be some line of code addied for this to occur thanks in advance, mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Update source in VBA | Excel Discussion (Misc queries) | |||
Why will links not update unless source is open? | Excel Discussion (Misc queries) | |||
Auto Update of Source File Name | Excel Worksheet Functions | |||
Change Source / Update Now buttons not available | Links and Linking in Excel | |||
update control source value | Excel Programming |