Change the default contextual ribbon name in Access 2010

Maybe this is a simple answer ... Could you please tell me how can I rename this?

screenshot

Xml code:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
   <tabs>
     <tab id="MyTab1" label="MyTab1">
        <group id="MyGroup1" label="My Group1">
           <labelControl id="myLabel1" label="Sample:"/>
           <labelControl id="myLabel2" label="Demo"/>
        </group>
     </tab>
  </tabs>
<contextualTabs>
  <tabSet idMso="TabSetFormReportExtensibility">
    <tab id="tabContextual" label="My Contextual Tab">
      <group id="MyContextualGroup" label="My Group in Contextual Tab">
        <labelControl id="myLabel1a" label="Sample:"/>
        <button id="btnDemo" size="large" label="Demo"/>
      </group>
    </tab>
  </tabSet>
</contextualTabs>

      

Thanks for any help!

+3


source to share


1 answer


I think your problem is not changing the label. I think myself is XML

just broken, so there is a residual tab before it stays there. You are missing the closing tags of yours <customUI>

and yours <ribbon>

.

So it should be:



 
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
   <tabs>
     <tab id="MyTab1" label="MyTab1">
        <group id="MyGroup1" label="My Group1">
           <labelControl id="myLabel1" label="Sample:"/>
           <labelControl id="myLabel2" label="Demo"/>
        </group>
     </tab>
  </tabs>
 <contextualTabs>
  <tabSet idMso="TabSetFormReportExtensibility">
    <tab id="tabContextual" label="My Contextual Tab">
      <group id="MyContextualGroup" label="My Group in Contextual Tab">
        <labelControl id="myLabel1a" label="Sample:"/>
        <button id="btnDemo" size="large" label="Demo"/>
      </group>
    </tab>
  </tabSet>
 </contextualTabs>
</ribbon>
</customUI>

      

Once I made these changes yours XML

works fine. Unless you accidentally go through the last two lines of yours XML

, just find out that your code is not the problem. You might just get stuck trying to make a custom tab.

0


source







All Articles