Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Office.AutoShowTaskpaneWithDocument only seems to work when hooked up to a button, and in desktop excel #5235

Open
EdwinStraver opened this issue Dec 30, 2024 · 2 comments
Assignees
Labels
Area: Excel Issue related to Excel add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@EdwinStraver
Copy link

I am trying to make sure my add-in which has a custom ribbon, and many commands, will automatically open a default taskpane when the add-in is installed.
I used the recommended code with Office.AutoShowTaskpaneWithDocument

However, I note it only works when i put it in the action controller of a button. It does NOT work when I attach it to the action controller of a menu item.

In addition, I don't seem to be able to make it work in Excel for the Web.

Are both these issues by design...or.. ?

Edwin

@millerds millerds transferred this issue from OfficeDev/Office-Addin-Scripts Jan 2, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jan 2, 2025
@guoms1 guoms1 self-assigned this Jan 3, 2025
@guoms1 guoms1 added Area: Excel Issue related to Excel add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP Needs: attention 👋 Waiting on Microsoft to provide feedback labels Jan 3, 2025
@guoms1
Copy link

guoms1 commented Jan 3, 2025

Hi @EdwinStraver

Thank you for sharing the details! To help me investigate this issue more effectively, could you please provide:

  • A complete add-in project that reproduces the problem (this would be ideal), or
  • A code snippet that demonstrates the issue clearly.

Having this will allow me to quickly reproduce and analyze the behavior you’re observing. I appreciate your time and effort in helping us address this!

Looking forward to your response.

Best regards

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Jan 7, 2025
@EdwinStraver
Copy link
Author

No, I dont have a complete add-in project that reproduces the problem....I assume that was a joke.

I follow the documentation from https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-on-installation

If I add this code in a manifest file:

Office.AutoShowTaskpaneWithDocument

it works IF the code is associated with a BUTTON. It does NOT work when the code is hooked up to a MENU.
It also does NOT seem to work when I add the add-in to Excel for the web; no taskpane opens automatically.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Status: no recent activity Issue or PR is stale (no recent activity) Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Excel Issue related to Excel add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

2 participants