View Single Post
 
Old 08-13-2024, 02:41 AM
hank1234 hank1234 is offline Windows 11 Office 2016
Novice
 
Join Date: Sep 2020
Posts: 11
hank1234 is on a distinguished road
Default

Thank you, Italophile! Your suggestion led me to the following solution. I've implemented it in the main .dotm file (not necessary to put any in the secondary one). Here's the relevant code:

This is the relevant code:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
          xmlns:nsHost="rbnManager"
          xmlns:nsClient="rbnManager">
  <ribbon startFromScratch="false">
    <tabs>
      <tab idQ="nsHost:Company" label="Company">
        <group idQ="nsHost:newGroup" label="New">
          <menu id="mnuMemo" 
                size="large" 
                label="Memo" 
                imageMso="NewPageOneNote">
            <button id="btnCreateMemo" 
                    label="New memo" 
                    onAction="mMemo.CreateNewMemo"/>
            <button id="btnEditMemo" 
                    label="Edit memo" 
                    onAction="mMemo.EditMemo"/>
          </menu>
        </group>
        
        <group idQ="nsClient:styleManagerGroup" label="Style Manager">
          <button id="btnStyleManager" 
                  label="Paragraph Styles" 
                  size="large"
                  imageMso="NewPageOneNote"
                  onAction="mStyleManager.ShowfrmParagraphStylesIfNecessary"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>
It would be ideal to have the xml separated (like in Italophile's post), but then I encountered that it's difficult to position the new group in the ribbon-tab. Is there a solution to the latter problem?
Reply With Quote