Solved

MS Access Ribbon problem

Posted on 2013-12-05
2
765 Views
Last Modified: 2013-12-16
Can anyone tell my why this code would result in only the Home Tab being visible?
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="OnRibbonLoad" >
  <ribbon startFromScratch="true">
   <qat> </qat>
  <tabs>
         <tab idMso = "TabHomeAccess" visible="true"/>
         <tab idMso="TabCreate" visible="true" />
        <tab idMso="TabExternalData" visible="true"/>
         <tab idMso="TabDatabaseTools" visible="true"/>    
 
        </tabs>
  </ribbon>
<!-- *** BACKSTAGE ***-->
<backstage>  
 <tab idMso="TabPrint" visible="false"/>  
<button idMso="ApplicationOptionsDialog" visible="false"/>  
   </backstage>  
 </customUI>
0
Comment
Question by:annagarrison
2 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39700486
You need something like this:

<tabs>
    <tab id="MyTab" label="My test tab">
         <group idMso="TabHomeAccess" visible="true"/>
         <group idMso="TabCreate" visible="true" />
         <group idMso="TabExternalData" visible="true"/>
         <group idMso="TabDatabaseTools" visible="true"/>
         <group id="MyGroup" label="MyGroup" >
             <button id = "ButtonId" label = "Some label"
                 supertip="My tip"
             />
         </group>
    </tab>  
</tabs

/gustav
0
 
LVL 26

Expert Comment

by:Nick67
ID: 39701426
To be honest, the Ribbon and its XML are still half-baked.  Forcing folks to code up the xml by hand isn't primetime -- and very odd things occur if the syntax isn't ABSOLUTELY perfect.  Some of the items can be case-sensitive.

What can really help is Custom UI Editor For Microsoft Office.
It is discussed here
http://msdn.microsoft.com/en-us/library/aa338202.aspx
http://msdn.microsoft.com/en-us/library/aa338199.aspx
http://msdn.microsoft.com/en-us/library/aa722523.aspx

and available for download here
http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/08/07/7293.aspx

It allows you to copy-and-paste your prospective xml into it, and it then validates that the xml is 'well-formed'  If your xml is not well-formed, nothing bombs--but oddness in how the Ribbons elements will displays result--and the Ribbon doesn't display as you anticipate.

A very, very long but good discussion of the Ribbon is here
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27231448.html

By the time you've parsed the last link, you'll have seen links to just about everything known about the Ribbon in Access.  Last I looked, the schema for 2010 and 2013 remain the same.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question