J
James
Software: Access 2007 with 2002/2003 file format.
Goal: Hide portions of Ribbon under Home tab including: some View buttons,
GroupTextFormatting, and GroupRichText.
Problem:
1) Incorrectly guessing idMso for Home tab based upon Error message
indicating “Failed to find Office control by ID. ID: TabHomeâ€. The
recommended method in Office Help to identify idMso is via Access
Options/Customize but this does not provide idMso for Tabs. The other tab
idMso names I guessed at and they work...just not TabHome or any other
variants.
Example of Code resulting in Error (TabHome call towards bottom):
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab idMso="TabAddIns" visible="false" />
<tab idMso="TabCreate" visible="false" />
<tab idMso="TabDatabaseTools" visible="false" />
<tab idMso="TabExternalData" >
<group idMso="GroupSharepointLists" visible="false" />
<group idMso="GroupCollectData" visible="false" >
</group>
</tab>
<tab idMso="TabHome" >
<group idMso="GroupViews" >
<control idMso="ViewsDesignView" visible="false" />
</group>
<group idMso="GroupTextFormatting" visible="false" />
<group idMso="GroupRichText" visible="false" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Goal: Hide portions of Ribbon under Home tab including: some View buttons,
GroupTextFormatting, and GroupRichText.
Problem:
1) Incorrectly guessing idMso for Home tab based upon Error message
indicating “Failed to find Office control by ID. ID: TabHomeâ€. The
recommended method in Office Help to identify idMso is via Access
Options/Customize but this does not provide idMso for Tabs. The other tab
idMso names I guessed at and they work...just not TabHome or any other
variants.
Example of Code resulting in Error (TabHome call towards bottom):
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab idMso="TabAddIns" visible="false" />
<tab idMso="TabCreate" visible="false" />
<tab idMso="TabDatabaseTools" visible="false" />
<tab idMso="TabExternalData" >
<group idMso="GroupSharepointLists" visible="false" />
<group idMso="GroupCollectData" visible="false" >
</group>
</tab>
<tab idMso="TabHome" >
<group idMso="GroupViews" >
<control idMso="ViewsDesignView" visible="false" />
</group>
<group idMso="GroupTextFormatting" visible="false" />
<group idMso="GroupRichText" visible="false" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>