Bind Custom Ribbon to Workbook
Posted on 2016-08-03
I have created a custom ribbon in Excel 2010. It has all of the standard stuff plus one additional tab. This tab has calls to macros specific to a particular workbook, and it makes no sense to have it up for any other reason. I would like this tab to come up when anyone opens this workbook (or any copy) and have the tab disappear if the workbook is not up.
Is there a way to accomplish this? Are there commands for testing if a particular ribbon tab exists, and if not, importing that tab when the workbook starts up?
All of this functionality used to be buttons, but they were taking up too much real estate on my worksheet. I was hoping to make things simpler by replacing the buttons with ribbon commands, but it seems like the ribbon is associated with a user rather than a workbook.
Any help on finding VBA commands that test for ribbon tabs, import them if they don't exist, and delete them when the program closes would be much appreciated.