简体   繁体   English

Excel 单元格不会自动更新

[英]Excel cells do not update automatically

I am exporting data from a simulation software to an excel file , I run for a specific number of times , each time I run the model data is saved to a specific sheet and I added one sheet (Summary sheet ) to pick value of specific cells from the previous sheets , but the problem is that cells in the last sheet ( Summary sheet ) do not update automatically after exporting to the file .我正在将数据从模拟软件导出到 excel 文件,我运行了特定次数,每次运行时,模型数据都会保存到特定工作表中,并且我添加了一张工作表(摘要工作表)来选择特定单元格的值从以前的工作表,但问题是最后一个工作表(汇总表)中的单元格在导出到文件后不会自动更新。 how that can be solved ?如何解决?

does the formula in your "summary-sheet" contain the "newly added data" in "specific-sheet"? “摘要表”中的公式是否包含“特定表”中的“新增数据”? I expect you add new rows to "specific-sheet".我希望您向“特定工作表”添加新行。 And the formula in "summary-sheet" looks like that: “摘要表”中的公式如下所示:

=sum("specific-sheet"!B:B)

if you "just" need an update/refresh (manually), try hitting F9 (this should recalculate the cells).如果您“只是”需要更新/刷新(手动),请尝试按F9 (这应该重新计算单元格)。

If you want to do the refresh automatically (without keyboard interaction), then I think it could be solved using VBA .如果您想自动进行刷新(无需键盘交互),那么我认为可以使用VBA来解决。 should be something like this:应该是这样的:

Range("summary-sheet"!"A1").Select  // possibly: "summary-sheet!A1"
Selection.Calculate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM