Hello,
I just upgraded one PC Excel 2007 to Excel 2016, and seems I have big issues now. I have VBA project very simple: It opens one by one 500-1500 Excel files, writes some info and closes.
First problem: Excel window is "Flickering" even Application.ScreenUpdating set to FALSE!
Second problem: very slow opening/closing compare Excel 2007, I've tested with simple sample which i wrote above, so Excel 2007 is doing around x3-5 times fast same VBA code.
Third problem(REAL ISSUE): This new Excel can't handle such operations of long term. I checked in Task Manager, when 2016 Excel opens file and closes it does not release RAM, and it's bumping only UP. When it reaches ~650-700 RAM everything hangs or closes. I went to test on Excel 2013/2019 - same ISSUE! I can't run my project on 2013/2016/2019 Excel VBA.
I've adding simple VBA example open/close workbook. Tested on Excel 2007 - Fast/Memory stable . Tested on Excel 2016/2019 - very slow/memory is going UP ~650-700MB, and Macro never finishes, the result: excel closes it self, or throws error which i can't see but just only sound was heard and I can't do anything. Probably with Excel 2013 will be the same.
Any solutions?
Sub ine() For i = 1 To 600 Workbooks.Open ("C:\ms bug\xxx.xlsx") Workbooks("xxx.xlsx").Close True Next End Sub