Microsoft project management software used to plan, manage, and communicate a project schedule and other information among workgroup members, project managers, and other stakeholders.
Hi @Swathi,
Thank you for providing the additional details. Based on your description, the issue is very likely related to the custom macros you previously added. After you removed the macros, the application became stable, which strongly indicates that the macro code was triggering the unexpected closure of MS Project.
Below are recommended solutions to help prevent the issue from returning:
1. Review and optimize the macro code:
If you plan to reinstall the macros, ensure:
- No infinite loops or background recurring triggers
- No constant auto‑saving
- COM objects are properly released
- Error‑handling is included
- Macros run manually instead of automatically when possible
This will significantly reduce the chance of another crash.
2. Test the file locally
Before syncing to OneDrive:
- Turn off OneDrive sync temporarily
- Store the .mpp file locally
- Add your macro and test it for at least 20–30 minutes
If stable, sync it back afterward.
3. Save the File in another name
Macros can significantly increase the file size, which may contribute to this issue.
- Several users have reported that files larger than 20-40 MB, especially when synced through OneDrive or SharePoint, can experience performance issues such as lag or unexpected closures.
- One simple workaround is to open the file and save it under a new name (for example, project.1.mpp). In many cases, this reduces the file size dramatically, sometimes from tens of megabytes down to around 2 MB.
Since removing the macros resolved the problem, the macro logic was almost certainly the root cause of MS Project closing after 10 minutes. You can reinstall the macro, but I recommend reviewing and optimizing it first to prevent the issue from returning, especially because your file is synced with OneDrive and may be affected by update/security policies.