Vertical Space in RibbonX icon of Microsoft Office Excel

mohsinbipu

New Member
Joined
Feb 19, 2021
Messages
17
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Web
I am trying to learn how to create custom ribbon in Excel just for my knowledge. I am trying to create ribbon similar like Home tab. But my vertical spacing is not like home tab. Picture can shown in details for better understanding about my issue. Also I am trying to find out how can I create bottom right corner icon. Please help me a idea, how to solve this problem.

VBA Code:
<group id="ToolsGeneral" label="Sheet Tools">

         <box id="box" boxStyle="vertical">
            <dropDown  id="btnSheets"
                getItemCount="btnSheetCount"
                getItemLabel="btnSheets_getItemLabel"
                onAction="SheetsClick"
                sizeString="MMMMMMMMM" 
                label="Sheets" 
                getSelectedItemIndex="btnSheets_getSelectedItemIndex" />
           <box id="buttonGroup" boxStyle="horizontal">
               <button id="button1" imageMso="HappyFace" />
               <button id="button2" imageMso="HappyFace" />
               <button id="rxJKPSheetToolsbtnInsertToc"  
                            onAction="nsertTC"
                            imageMso="CustomTableOfContentsGallery" />
            </box>
        </box>
</group>

I have asked same issue in here. But I would like to publish here to get any different idea.
 

Attachments

  • ribbon UI Excel.jpg
    ribbon UI Excel.jpg
    52.9 KB · Views: 24

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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