Fix Excel Office Scripts 'Oops, Something Went Wrong' Error
Question details
The user is unable to create, record, or save Excel Office Scripts due to an unexpected error message.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to automate tasks by creating or recording an Office Script in Microsoft Excel.
- Observed behavior
- An error stating 'Oops, Something Went Wrong' appears when creating scripts, and recording actions fail to save due to an unexpected error.
Ensure you have a stable internet connection and verify that your Microsoft 365 subscription plan still includes active access to Office Scripts.
Report the Issue to Microsoft Office Development
Since this is often a backend or service issue affecting Office Scripts creation, seeking assistance from Microsoft specialists is the most effective resolution.
Office Scripts rely on cloud services to compile and save your automation steps. When the service encounters a disruption, local troubleshooting may not resolve the 'unexpected error' message.
Note down your current Excel version, Microsoft 365 account type, details about the affected workbook, and take screenshots of the exact error message.
Open your web browser and visit the Microsoft Q&A platform, specifically targeting the Office Development tag.
Create a new question detailing your problem. Provide the screenshots and technical details so Office Scripts specialists can accurately investigate the failure.

Clear Browser Cache and Check Connection
If you are using Excel on the Web, a corrupted browser cache or unstable connection might trigger unexpected errors during script saving.
Use WPS Office for Reliable Spreadsheet Automation
If Microsoft Excel's cloud-based Office Scripts are causing workflow disruptions, try WPS Office. It provides powerful spreadsheet capabilities, offline macro support, and full compatibility with Microsoft Excel formats without unexpected cloud syncing errors.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Open Your Workbooks: Launch WPS Spreadsheet and open your existing Excel workbooks effortlessly.
- 3. Automate with Macros: Use the built-in Developer tools to write and run VBA macros locally without cloud-based interruptions.

Frequently Asked Questions
Why does Excel say 'Oops, something went wrong' when I save a script?
This error typically occurs due to a temporary disruption in Microsoft's cloud services, a loss of internet connectivity during script compilation, or permission issues within your Microsoft 365 tenant.
Can I use VBA instead of Office Scripts?
Yes, desktop versions of Microsoft Excel and alternatives like WPS Office support VBA (Visual Basic for Applications), which runs locally and is not affected by cloud-based script saving errors.
How can I check my Office Scripts permissions?
Office Scripts access is managed by your Microsoft 365 IT administrator. You can contact your IT department to ensure the feature is enabled for your account in the Microsoft 365 Admin Center.
Does this error affect other users in my organization?
If the issue stems from a Microsoft service degradation or a recent tenant policy update, other users in your organization attempting to record or create Office Scripts will likely experience the same error.




