'Open A Different TaskPane via Current Taskpane - Office-JS

I have two taskpanes that I can open via clicking each button in the UI/Ribbon.

What I'm trying to do is have one button that opens a taskpane and a button in that taskpane that opens up the second taskpane. So far, I can only redirect the current taskpane. Can I somehow open the second taskpane from the first via JS?

This is in Excel.



Solution 1:[1]

You can't literally do that. You can open a dialog from a task pane, but not another task pane. Does your use case require both task panes to be open at the same time? If not, consider creating a tabbed experience inside the task pane; so there's one task pane, but two tabs.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rick Kirkham