Can Office Add-ins Run in Embedded Excel Online?
Question details
The user is looking to determine if Office JavaScript add-ins are supported and can execute properly within an Excel file that is embedded in a web application using Microsoft 365 and SharePoint.

- Product
- Excel Online, Microsoft 365, SharePoint
- Device & OS
- not provided
- Scenario
- Attempting to run custom or third-party Office JavaScript add-ins inside an Excel workbook that is embedded in a web application environment.
- Observed behavior
- Compatibility is unclear, or the user is encountering errors when loading the add-in in the embedded Excel environment without sufficient diagnostic details.
Before troubleshooting add-in compatibility issues, ensure you have access to your add-in's manifest file, exact error messages from the browser console, and details regarding your authentication setup.
Gather Required Diagnostic Information for the Add-in
To determine whether your specific Office JavaScript add-in can run in an embedded Excel Online instance, you must collect precise technical details about your environment.
Embedded Excel environments (such as SharePoint web parts or iframe embeddings) have strict security and origin policies. Identifying the exact configuration is crucial for diagnosing add-in failures.
Document exactly how the Excel file is being embedded into the web application. Common methods include using an iframe, SharePoint web parts, or the Microsoft Graph API.
Determine whether the host running the workbook is Excel Online via Microsoft 365, an on-premises SharePoint Server, or another host.
Examine the XML manifest file for your Office JavaScript add-in to ensure all necessary AppDomains are listed and the correct requirements for web hosts are specified.
Document how the web application handles authentication (e.g., SSO, OAuth) and capture screenshots or text of any exact error messages displayed in the browser's developer console.

Post in the Office Development Microsoft Q&A Forum
If you have collected the required information and the add-in still fails to run, escalate the issue to Microsoft's developer support community.
Try WPS Office for Seamless Spreadsheet Management
While developing custom JavaScript add-ins for embedded Microsoft Excel instances requires extensive troubleshooting and configuration, WPS Office offers a free, lightweight, and highly compatible alternative for everyday spreadsheet needs. It handles standard Excel files effortlessly without the complexity of web embeddings.

Frequently Asked Questions
What are Office JavaScript add-ins?
Office JavaScript add-ins are web applications built using standard web technologies (HTML, CSS, JavaScript) that interact with Microsoft Office documents to extend the functionality of applications like Excel, Word, and PowerPoint.
Can I run traditional VBA macros in embedded Excel Online?
No, Excel Online and its embedded versions do not support running VBA (Visual Basic for Applications) macros. You must use Office Scripts or Office JavaScript add-ins for web-based automation.
Why is my add-in failing to load in a SharePoint embedded Excel file?
Loading issues in embedded environments are frequently caused by cross-origin resource sharing (CORS) restrictions, iframe security policies, missing trusted domains in the manifest, or authentication token mismatches.
Does WPS Office support Microsoft Office JS add-ins?
WPS Office has its own customized developer ecosystem and supports standard VBA macros in its premium versions. However, specific Office JavaScript add-ins designed exclusively for the Microsoft 365 web environment will not directly run inside WPS Office.




