Hello everyone
I built a file template for quite a few colleagues. Until now, I never had an issue with it such as this one.
Just before to go in the detail, I want to pinpoint the fact it is not occuring for all the people using my template and that my colleagues are quite allergic to VBA and so I am pretty 100% sure they did not modify any code by themselves.
ISSUE:
- if a file using my template is opened with another Excel file (even a just newly empty one), if I close the file using the template, it will also close the second Excel file (without any warning). -> NOK
- It does this even after I cleared all the content of object "ThisWorkbook" (where we can write routines to excecute actions on closing or opening -> in this case I do not write anything) -> NOK
- deleting a module of that file using the template with macro activated will cause the crash of all Excel files (the entire Excel application in other words) -> NOK
- if now I disable the macros (using the Excel advanced security options), I can delete a module without the file to crash. And even re-enabling the macros (still using the Excel advanced security options) and closing the file, Excel does not crash. It does not matter which module is deleted, it could be any, but the ISSUE would not be present anymore -> OK
- if I try to delete a module using ''Application.EnableEvents = False", it does not work (Excel still crash). In order to delete a module without a crash, I must deactivate macros in the security settings of Excel -> NOK
The file using the template is quite light (5.7Mo) even if I coded quite a lot in different modules.
From my point of view, I feel like having too many modules overall is making Excel to crash. I hope I am wrong as then I would feel like VBA coding is disappointing.
Please help me. Your help will be very much appreciated.