Charts Do Not Automatically Update When Data Changes

后端 未结 9 2821
庸人自扰
庸人自扰 2021-02-19 18:52

Hopefully this is an easy one. I have a series of charts in MS Excel that point to data on the same worksheet. The data on the worksheet is calculated using a VBA function. W

9条回答
  •  被撕碎了的回忆
    2021-02-19 19:28

    UDF getWeekValue has to be marked as volatile.

     Function getWeekValue (weekNumber As Integer, valuesRange As Range) As Integer   
     
     Application.Volatile '!!
    
     Dim aCell As Range  
     Dim currentDate As Date
     
     '... 
    

提交回复
热议问题