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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,225,628
Messages
6,186,103
Members
453,337
Latest member
fiaz ahmad

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