Custom Ribbon Load Error

Anonymous
2022-03-31T10:05:48+00:00

Hi,

I'm trying to create a custom ribbon.

Based on the microsoft help page, I came out with this XML code:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">

  <ribbon startFromScratch="True">

    <tabs>

      <tab id="Home" label="Home" visible="true">

        <group id="Main" label="Main">

          <button id="menu" label="Main Menu"

            size="large" imageMSO="BlogHomePage"/>

        </group>   

        <group id="Print" label="Print">

            <button idMSO="FilePrintPreview"/>

            <button idMSO="FilePrintQuick"/>

        </group>

        <group id="Export" label="Export">

            <button idMSO="ExportExcel"/>

        </group>

        <group id="Close" label="Close">

            <button idMSO="WindowClose"/>

        </group>

      </tab>

    </tabs>

  </ribbon>

</customUI>

that I copy passed as is in the RibbonXML field of the USysRibbon

When I exit and reenter the database, I got all those nice errors:

the same errors will spout for:

Line 4 Column 34

Line 12 Column 46

Line 15 Column 41

Line 18 Column 41

Line 13 Column 44

Line 12 Column 44

Line 11 Column 46

Line 16 Column 41

Line 3 Column 34

Line 19 Column 41

Whatever that means.

What could this mean?

Thanks for your help.

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2022-03-31T12:00:05+00:00

You didn't copy my XML properly.

The error is complaining about idMSO and my XML had it switched to idMso.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2022-03-31T11:45:25+00:00

This will at least get you started

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

  <ribbon startFromScratch="True">

    <tabs>

      <tab id="Home" label="Home" visible="true">

        <group id="Main" label="Main">

          <button id="menu" label="Main Menu"/>

        </group>   

        <group id="Print" label="Print">

            <button idMso="FilePrintPreview"/>

            <button idMso="FilePrintQuick"/>

        </group>

        <group id="Export" label="Export">

            <button idMso="ExportExcel"/>

        </group>

        <group id="Close" label="Close">

            <button idMso="WindowClose"/>

        </group>

      </tab>

    </tabs>

  </ribbon>

</customUI>

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-03-31T10:48:15+00:00

    Try changing True to true.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-03-31T10:45:37+00:00

    Thanks, I tried, but now I get:

    and

    and

    (that last one on many lines /columns)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-03-31T10:41:16+00:00

    Was this answer helpful?

    0 comments No comments