Search code examples
ms-officeoffice-js

Specify "Excel Only" in the manifest file


I submitted an Excel add-in several days ago. Today, I received a change requirement:

1.2 Your app or add-in must work according to your description, and must not be in an unfinished state.`

Your add-in claims to work in the Word, PowerPoint and Project clients however it does not appear to be fully functional as there appears to be no interaction between your add-in and the mentioned clients, except for the Excel client. Please ensure your add-in works in all declared applications. If you do not intent to support the Word, PowerPoint and Project clients, please make the relevant changes in your add-in manifest.

I don't know where (in the manifest file) to specify this add-in is for Excel only. Could anyone help?


Solution

  • In your manifest, there will be a section like:

    <Hosts>
        <Host Name="Workbook" />
        <Host Name="Presentation" />
        <Host Name="Project" />
        <Host Name="Document" />
    </Hosts>
    

    Remove all the <Host ... /> lines except the one containing "Workbook", and you'll be all set.

    See https://dev.office.com/docs/add-ins/overview/add-in-manifests for more information.