I have an Excel file with multiple sheets that are for the most part protected. The user can only edit certain cells and all adding/copying/duplicating/deleting of rows is handled via buttons and VBA.
The code for inserting a row:
ActiveCell.EntireRow.Copy
ActiveCell.EntireRow.OffSet(1).Insert xlShiftDown
and deleting a row:
Selection.EntireRow.Select
Selection.Delete xlShiftUp
There's a large number of Sum(...) and other formulas in the Excel file. In general, those update correctly. Sum(B5:B10) correctly references Sum(B5:B15) when you add 5 rows to it.
Every now and then there seems to be a bug that corrupts a lot of the formulas and shifts them incorrectly (e.g. Sum(B4:B14)).
This happens occasionally and on specific PCs. I can't reproduce them on any of my machines.
On most of the User-PCs it works. On some machines it seems to appear more regularly, but still not reproducable on demand.
Most users report that it happens after they click the insert-row & delete-row buttons often in a short time.
Information from one user who encountered this problem:
Operating-System: Windows 10, 64-bit;
Excel-Version: Excel 2016, 32-bit
Excel had been opened from mail and was then saved on Disk.
Programs open at the same time problem occurred:
One other Excel file (without macros), Outlook, IE, Adobe, Skype
As far as I know there are no "automatic tools" like AutoHotKey or something along the lines installed.