Getting Excel to refresh data on sheet from within VBA

前端 未结 6 1098
夕颜
夕颜 2020-11-27 06:14

How do you get spreadsheet data in Excel to recalculate itself from within VBA, without the kluge of just changing a cell value?

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 06:50

    You might also try

    Application.CalculateFull
    

    or

    Application.CalculateFullRebuild
    

    if you don't mind rebuilding all open workbooks, rather than just the active worksheet. (CalculateFullRebuild rebuilds dependencies as well.)

提交回复
热议问题