JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
865 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My team is developing an Excel add-in, and we do not wish to support IE11. Is there any way to specify (probably in the manifest file?) that our add-in is not available for any platforms/versions of Excel that use IE to render add-ins?
Probably too late to help the OP, but here's the documentation to display a custom message like "We don't support IE11 in this add in":
https://learn.microsoft.com/en-us/office/dev/add-ins/develop/support-ie-11?tabs=ie
if (navigator.userAgent.indexOf("Trident") !== -1) {
/*
IE11 is the browser in use. Do one of the following:
1. Provide an alternate add-in experience that doesn't use any of the HTML5
features that aren't supported in IE11.
2. Enable the add-in to gracefully fail by adding a message to the UI that
says something similar to:
"This add-in won't run in your version of Office. Please upgrade either to
perpetual Office 2021 or to a Microsoft 365 account."
*/
} else if (navigator.userAgent.indexOf("Edge") !== -1) {
/*
Microsoft Edge Legacy is the browser in use. Do one of the following:
1. Provide an alternate add-in experience that's supported in Microsoft Edge Legacy.
2. Enable the add-in to gracefully fail by adding a message to the UI that
says something similar to:
"This add-in won't run in your version of Office. Please upgrade either to
perpetual Office 2021 or to a Microsoft 365 account."
*/
} else {
/*
Another browser, other than IE11 or Microsoft Edge Legacy, is in use.
Provide a full-featured version of the add-in here.
*/
}