I have a challenging issue with an XLSM file with some macros in a multi-user environment. In this file I have some macros, amongst others one when the file closes - it hides certain sheets, and one that shows those sheets again - that one runs on start-up.
So this uses:
Private Sub Workbook_Open()
'Code to unhide some sheets
End Sub
and
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Code to hide sheets
End Sub
Now the next situation happened: 2 users (A and B) were in the same file together (on a Sharepoint location), so were working on it together. Next, user B leaves the file and the file runs the "close"-macro. So user A sees the sheets hiding and also closes the file. Next, user A opens the file again and all macros stopped working. No warning, no changes in settings, but none of the macros in the file will run - although my custom menu bar will show.
That exact same file works perfectly fine for user B and for me (let's call me user C), but on the PC of user A, the macros simply won't fire anymore (they did that morning). Does anyone have a clue what happened and/or what I can do about this?
Based on the comments, we did these tests:
- move file on PC of user A to another folder (desktop) - no change
- send file to user C (me), add a sheet, send it back, "unlock it" (through Windows Explorer - unblock macros) and open it - no change
- sister file (100% the same macros, locked and signed) - works fine, macros work
- file opened by user B (on the same network/company) and user C (external party, me) - works fine, macros work
- file opened that morning - worked fine, macros work
- double checked VBA settings - looks fine, no blocks there