Thank you, Alex. This is very interesting
I tried to save the file as new copy on mac thru File → Save As but the resulting copy still has the same problems - cannot insert, delete or copy tabs. I also tried to unhide tabs by right clicking at a tab but the unhide feature is grayed out. (As an aside: How did you determine that was this _FDSCACHE_ tab? And how did you see those subfolders? can that be done on mac?)
Then I discovered something else:
- I went back to windows where the file was originally generated. With that original .xlsx file I could insert/copy/delete tabs without problems.
- I re-downloaded that file onto the the mac - with this fresh copy I could also insert/copy/delete tabs without problems
So what causes the problem? In short, Edit Links.
The file in question has some references to one external file. So in my normal workflow after I downloaded the .xlsx file onto the mac, I have to Edit Links to adjust the file reference. It is AFTER I've edited the links, saved the file and then try to reopen this file on the mac when the problem occurs.
In the file that I provided you, the edit links had already happened and, in order that you don't see a pop up asking for an external file, I have copy/pasted values those affected cells.
On the mac I have just done this Edit Links process a couple of times and the problem can be replicated. However I cannot replicate this problem on the windows side. So this seems to be an issue on the mac version of excel only.
In any event, here is a version of the file (test.210912.xlsx) with links to this simplified file (external.xlsx) in case you want to try it.
Again the steps to replicate on the mac are:
- open test.210912.xlsx
- edit links to reference external.xlsx
- (optionally) verify that you can insert/copy/delete tabs at this point
- save test.210912.xlsx & close it
- open test.210912.xlsx
- try to insert/copy/delete tabs - should fail on mac but works on windows
FYI, if Edit Links does turn out to be a real bug, I can probably side step it by changing my macro to copy
& paste values those links too.
Thanks a lot for your time