我从假期回来看到我所有的 Excel 应用程序在运行几秒钟/几分钟后崩溃。随着新升级到 2016,似乎有一些奇怪的行为。
例如,以下工作完全正常
Sub Test1()
for i = 1 to 10000000
temp1 = 4 + 6
next i
End Sub
然而,以下导致我的 Excel 在几秒钟内崩溃,因为我的 TaskManager 中所需的内存不断攀升至超过 1.5GB
Sub Test2()
for i = 1 to 10000000
temp1 = worksheetfunction.Min(5,7)
next i
End Sub
我猜我将不得不恢复到 2013 年,因为我有数千行代码很可能需要修改(但不确定是什么)
任何想法可能导致此问题和解决方案?
谢谢
最佳答案
I want to let you know that the Excel team recently fixed this issue. The fix is in build 16.0.6366.2062, which started rolling out on 1/25. If you don't see the update yet, go to File > Account > Update Options > Update Now.
(source)
关于Excel 2016 升级导致内存崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34567749/