Excel add-in: do not target IE11?

Ashley Fisher 21 Reputation points
2020-12-10T21:57:11.023+00:00

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?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
865 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,474 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Augustin Riedinger 0 Reputation points
    2023-03-09T14:44:05.0866667+00:00

    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.
        */
    }
    
    0 comments No comments