If you want to open a workbook and only show the custom Add-in tab and the Data tab
You must add ribbonX to the workbook to hide the built-in tabs (not the Data tab)
Your RibbonX looks like this then
<customUI xmlns="
http://schemas.microsoft.com/office/2006/01/customui">
<!-- **************************************************************************-->
<!-- ****Disable 'Exit Excel' and 'Excel Options' on the Office Button menu****-->
<!-- ****Note: See that the RibbonX below is before the <ribbon> start line****-->
<!-- **************************************************************************-->
<commands>
<command idMso="ApplicationOptionsDialog" enabled="false"/>
<command idMso="FileExit" enabled="false"/>
</commands>
<ribbon>
<!-- **************************************************************************-->
<!-- *****Set visible to false for all controls on the Office Button menu******-->
<!-- **************************************************************************-->
<officeMenu>
<button idMso="FileNew" visible="false"/>
<button idMso="FileOpen" visible="false"/>
<button idMso="FileSave" visible="false" />
<splitButton idMso="FileSaveAsMenu" visible="false"/>
<splitButton idMso="FilePrintMenu" visible="false"/>
<menu idMso="FilePrepareMenu" visible="false" />
<menu idMso="FileSendMenu" visible="false"/>
<menu idMso="MenuPublish" visible="false"/>
<button idMso="FileClose" visible="false" />
</officeMenu>
<!-- **************************************************************************-->
<!-- **********Set visible to false for all tabs on the Ribbon*****************-->
<!-- **************************************************************************-->
<tabs>
<tab idMso="TabHome" visible="false"/>
<tab idMso="TabInsert" visible="false"/>
<tab idMso="TabPageLayoutExcel" visible="false"/>
<tab idMso="TabFormulas" visible="false"/>
<tab idMso="TabReview" visible="false"/>
<tab idMso="TabView" visible="false"/>
<tab idMso="TabDeveloper" visible="false"/>
<tab idMso="TabAddIns" visible="false"/>
</tabs>
<!-- **************************************************************************-->
<!-- ********Set visible to false for all Contextual tabs on the Ribbon********-->
<!-- **************************************************************************-->
<contextualTabs>
<tabSet idMso="TabSetSmartArtTools" visible="false" />
<tabSet idMso="TabSetChartTools" visible="false" />
<tabSet idMso="TabSetDrawingTools" visible="false" />
<tabSet idMso="TabSetPictureTools" visible="false" />
<tabSet idMso="TabSetPivotTableTools" visible="false" />
<tabSet idMso="TabSetHeaderAndFooterTools" visible="false" />
<tabSet idMso="TabSetTableToolsExcel" visible="false" />
<tabSet idMso="TabSetPivotChartTools" visible="false" />
<tabSet idMso="TabSetInkTools" visible="false" />
</contextualTabs>
</ribbon>
</customUI>
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm