UI editor (xlm) -> space between buttons

Kamolga

Well-known Member
Joined
Jan 28, 2015
Messages
1,185
Hi,

I have set up a Ribbon using custom UI editor but they are not spread equally
Capture.PNG

Is there anything I can add to the code?
XML:
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
 <ribbon>
  <tabs>
   <tab                id="TabGDS"   
                    label="GDS"                                 
          insertBeforeMso="TabHome">   
    <group             id="GrSheets"
                    label="Feuilles"                           
           insertAfterMso="GroupEditingExcel">
             <button   id="BtSom"
                    label="Sommaire"
                     size="large"
                 imageMso="AppointmentColor4"
                 onAction="BtClick"/>
            <separator id="SepSom" />
             <button   id="BtMulti"
                    label="Réf Multi"
                     size="large"
                 imageMso="AppointmentColor1"
                 onAction="BtClick"/>
             <button   id="BtAno"
                    label="Anomalies Emplacement"
                     size="large"
                 imageMso="AppointmentColor2"
                 onAction="BtClick"/>

Thanks in advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The only reason they aren't spread equally is the different caption lengths. You could simply pad the captions (eg with spaces) as needed to make them all the same length, though you'll end up with an unnecessarily wide tab.
 
Upvote 0
I tried to extend the label with spaces or tab
XML:
<button   id="BtMulti"
                    label="Réf Multi        "
                     size="large"
                 imageMso="AppointmentColor1"
                 onAction="BtClick"/>
             <button   id="BtAno"
                    label="Anomalies Emplacement"
                     size="large"
                 imageMso="AppointmentColor2"
                 onAction="BtClick"/>
             <button   id="BtPic"
                    label="Création Picking    "
                     size="large"
                 imageMso="AppointmentColor3"
                 onAction="BtClick"/>
             <button   id="BtNG"
                    label="Non Géré            "
                     size="large"
                 imageMso="AppointmentColor5"
                 onAction="BtClick"/>
without success
1575901297921.png
 
Upvote 0
Strange - it works for me in 2010.
 
Upvote 0

Forum statistics

Threads
1,215,733
Messages
6,126,541
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top