Hey everyone! Here is my problem. I have an Excel application whose tab navigation is implemented through buttons on a Ribbon tab instead of buttons in a spreadsheet. So far, I've successfully created a new "Navigation" tab to display these buttons and execute their callbacks.
The tab menu sits in a seperate .xlam file which I've loaded as in Add-In. By default, the tab menu does not appear on the ribbon -- that is, it's visibility always set to false unless otherwise specified. When one opens the correct spreadsheet, a command in the Workbook_Open procedure of that spreadsheet makes a call to the .xlam file to change the tab's visibility setting to true. In this way, I am able to have the navigation tab always sitting in the background whenever someone opens Excel; thus, the navigation tab is only enabled when the correct file is open.
Hopefully I haven't lost you yet. The problem is that I don't really care for the other tabs - I only want my tab to be displayed. If I set startFromScratch="false" in the xlam file, it will always remove every tab regardless of whether my .xlam menu is visible or not. Moreover, I don't think there is a getStartFromScratch callback like there is for the visibile property (I could be wrong about this - in fact, I hope I'm wrong about this!). Does anyone have any ideas on what I can do to only show my one tab when a specific file is loaded in Excel?
Thanks,
Jordan
The tab menu sits in a seperate .xlam file which I've loaded as in Add-In. By default, the tab menu does not appear on the ribbon -- that is, it's visibility always set to false unless otherwise specified. When one opens the correct spreadsheet, a command in the Workbook_Open procedure of that spreadsheet makes a call to the .xlam file to change the tab's visibility setting to true. In this way, I am able to have the navigation tab always sitting in the background whenever someone opens Excel; thus, the navigation tab is only enabled when the correct file is open.
Hopefully I haven't lost you yet. The problem is that I don't really care for the other tabs - I only want my tab to be displayed. If I set startFromScratch="false" in the xlam file, it will always remove every tab regardless of whether my .xlam menu is visible or not. Moreover, I don't think there is a getStartFromScratch callback like there is for the visibile property (I could be wrong about this - in fact, I hope I'm wrong about this!). Does anyone have any ideas on what I can do to only show my one tab when a specific file is loaded in Excel?
Thanks,
Jordan