Search code examples
exceloffice-jsoffice-addinsexcel-addinsexcel-web-addins

Open 'Insert Hyperlink' menu in Excel office Add-in


I want to open the 'Insert Hyperlink' menu programmatically without right clicking the cell.

https://stackoverflow.com/questions/48985342/open-insert-hyperlink-menu-in-excel-through-a-clickable-shape#:~:text=Application.Dialogs(xlDialogInsertHyperlink).Show

this link shows the way to achieve this in vba, is there a similar way for opening hyperlink menu in Excel office Add-in?


Solution

  • There is not yet an Office JS API similar to the Application.Dialogs API in VBA that can be used by an add-in to open Excel dialogs. Please consider logging a request for this API in the Microsoft 365 Developer Community.

    An alternative might be to have the add-in provide UI similar to the Insert Hyperlink dialog either in the task pane or in a dialog.