Forum Discussion
subhavx
Nov 23, 2026Copper Contributor
Not able to create new office scripts or able to access already created ones
An unexpected error occurred. Close the task pane to try again. To use Office Scripts, you must change your browser settings to allow third-party cookies. If that doesn't work, your organization's a...
Jamony
Nov 25, 2026MCT
The error affects both new and existing scripts in Excel for the web, so start by checking access to the Office Scripts service rather than editing a script. The message identifies two possibilities; it does not establish which one is responsible.
First, check whether your browser blocks third-party cookies. Allow the required cookies for a controlled test, reload the workbook, and try Automate again. If the browser is managed, ask your administrator which exceptions are permitted. You can also test another supported browser using the same account and workbook.
If this is a work or school account, ask the Microsoft 365 administrator to verify that Office Scripts is enabled for your account and that your license supports it. Check the account and browser profile used to sign in. If the problem persists, provide the browser version, account type, time of the error, and whether Excel desktop behaves differently when contacting support