Menu option in Office Ribbon
Closed this issue · 14 comments
Hi @ishanig11, I found a reference: https://learn.microsoft.com/en-us/office/dev/add-ins/design/add-in-commands, hope it is helpful. Hi @m-hellesen, do you have any idea to achieve this? Thanks.
Thank you @shanshanzheng-dev . With above link I can add commands like
I have already implemented this through manifest file. I am looking someway to add commands as dropdown or menu using manifest file.
Hi @ishanig11, I found a codeSamples https://learn.microsoft.com/en-us/samples/officedev/pnp-officeaddins/excel-add-in-commands/, could you try this?
@shanshanzheng-dev : Thank you for sharing this code sample. I created controls similar as shown above example.
Please refer for control definition.
I am trying this on online office version. Kindly check and let me know what is missing.
Hi @ishanig11, I think this code is good, maybe you can try this steps to upload manifest:https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/office-add-in-commands/excel#run-the-sample-on-excel-on-the-web
@shanshanzheng-dev : yes, I have already uploaded manifest file. I did all these steps. I see all my commands in Excel ribbon but no dropdown.
Hi @ishanig11, I download that manifest from https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/office-add-in-commands/excel/manifest.xml, and upload this manifest from:
And then, I can see the dropdown menu:
Or you can change this simple code to what you want?
Hi @ishanig11 I think it support word and powerpoint also. You can try https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/office-add-in-commands/word/manifest.xml and https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/office-add-in-commands/powerpoint/manifest.xml
But about commands as part of dropdown, I don't think so, I'll check with my team workers. If there're some updates, I'll confirm with you. Thanks.
Hi @ishanig11, Sorry for slow response. About commands as part of dropdown, I think we can't do this, I'll check with my team workers. If there're some updates, I'll confirm with you. Thanks.
@ishanig11 - can you help me understand the specific question? Are you looking to have an app command in the dropdown or something different?
@EsterBergen : Along with Dropdown, I am looking for options to how pre-populated data on commands like textbox as shown in image.
HI @ishanig11 - This functionality is not currently supported. We track Office Add-in feature requests on our Microsoft 365 Developer Platform Ideas Forum. Please add your request there. Feature requests on are considered when we go through our planning process. Thanks for highlighting this!