Custom Ribbon Not Loading (1 Viewer)

Frothingslosh

Premier Pale Stale Ale
Local time
Today, 09:39
Joined
Oct 17, 2012
Messages
3,276
I would like to create a custom ribbon for an Access 2007 application I'm tweaking so it only has the Home tab, and in that home tab, doesn't show the Views Group. Bear in mind, I've never TOUCHED XML before this, so I'm not entirely sure I even have the XML right.

Anyway, based on the MS site, I am using this for the XML code:

Code:
<customUI xmlns="[URL]http://schemas.microsoft.com/office/2006/01/customui[/URL]">
  <ribbon startFromScratch="false">
    <tabs>
      <tab idMso="TabCreate" visible="false" />
        <group idMso="GroupViews" visible = "false" />
        </group>
      <tab idMso="TabExternalData" visible="false" />
      <tab idMso="Datasheet" visible="false" />
      </tab>
    </tabs>
  </ribbon>
</customUI>

However, when I enable it and start the database, I get the following errors:

Error 1:
Code:
Line: 5
Column: 54
Error Code 0x80004005
Element '{http://schemas.microsoft.com/office/2006/01/cusomui}group'is unexpected according to content model of parent element '{http://schemas.microsoft.com/office/2006/01/customui}tabs'.

Error 2:
Code:
Line: 6
Column: 16
Error Code 0xC00CEE3B
The name of the end tag of the element must match the element type in the start tag.

I'm guessing I'm hiding the View group incorrectly (I assumed it would work just like hiding a tab), but I cannot find anything online showing how to do so. I would use a ribbon creation tool I found online, but it's not free and the company will not authorize the purchase.

So my question is, how do I fix this? I've been searching the web without much success so far.
 

Ari

Registered User.
Local time
Today, 06:39
Joined
Oct 22, 2011
Messages
139
Hi

In your case it is better to apply the reverse, ie, disables all tabs with startFromScratch = "true" and then enable only the desired tab. example:

Code:
<customUI xmlns="[URL]http://schemas.microsoft.com/office/2006/01/customui[/URL]">
  <ribbon startFromScratch="true">
    <tabs>
      <tab idMso="TabHomeAccess" visible="true" >
         <group idMso="GroupViews" visible ="false" />
      </tab>
    </tabs>
  </ribbon>
</customUI>

Why are you not even stand the purchase application? The site below is this done in Access, and it costs very little.

http://www.ribbon01.com
 

Frothingslosh

Premier Pale Stale Ale
Local time
Today, 09:39
Joined
Oct 17, 2012
Messages
3,276
Thanks for the correction to the HTML.

I'm not entirely sure what you're asking at the end, but the company wouldn't even spring for a $10 wrist rest for me, so I find it unlikely they'd pay for that wizard you linked. The truth of the matter is they hired me as a data entry operator, fired their Systems Analyst, and now have me doing everything he did. While continuing to pay me at the data entry scale. I'm not ABOUT to shell out anything for them myself.

(And yes, I'm looking for a different job, before anyone comments.)
 

Users who are viewing this thread

Top Bottom