CustomUI Ribbon Excel - Drop Down Menu

lnagel

Board Regular
Joined
May 28, 2018
Messages
117
So I just started playing with the CustomUI Ribbon Excel tool this morning.

My intent was to
1.) remove all menus from my VBA Project Workbook
2.) create a custom Drop Down Menu (Menu Items Stacked on top of each other and not individual buttons) with Menu Selections calling sub in Project Workbook

Example code I found accomplishes item #1 and the button clicks do call the Sub in VBA Module Object - however it depicts the Menu items as "buttons" and arranges them Horizontally in the MenuBar -

I'm sure it is the "Button" commands in the XML - but can't seem to find what I need to convert that to drop list with (what I believe is) On Select iTem

Any assistance in getting me in the right direction would be appreciated

XML Code currently looks like

#
customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
ribbon startFromScratch="true">
tabs>
tab id="Menu" label="SetBilder">
group id="SimpleControls" label="Menu Commands">

menu id="CTRl1"
label="Save Set As..."
onAction="ThisWorkbook.MyMacro"/>


button id="CTRl2"
label="Print Set - All Values"
onAction="ThisWorkbook.MyMacro"/>
separator id="mySeparator2" />

button id="CTRl3"
label="Print Set - No Cost"
onAction="ThisWorkbook.MyMacro"/>
separator id="mySeparator3" />

button id="CTRl4"
label="Import - Update Price Guide"
onAction="ThisWorkbook.MyMacro"/>
separator id="mySeparator4" />

button id="CTRl5"
label="Import - Update SetBilder Version"
onAction="ThisWorkbook.MyMacro"/>
separator id="mySeparator5" />

/group>
/tab>
/tabs>
/ribbon>
/customUI>
#
HTML:
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon startfromscratch="true"> 
    <tabs> <tab id="Menu" label="SetBilder"><group id="SimpleControls" label="Menu Commands"><customui xmlns="http://schemas.microsoft.com/office/2009/07/customui"> 
  <ribbon startfromscratch="true"> 
    <tabs> 
      <tab id="Menu" label="SetBilder"> 
        <group id="SimpleControls" label="Menu Commands"> </group></tab></tabs></ribbon></customui></group></tab></tabs></ribbon></customui><customui xmlns="http://schemas.microsoft.com/office/2009/07/customui"><ribbon startfromscratch="true"><tabs><tab id="Menu" label="SetBilder"><group id="SimpleControls" label="Menu Commands"><customui xmlns="http://schemas.microsoft.com/office/2009/07/customui"><ribbon startfromscratch="true"><tabs><tab id="Menu" label="SetBilder"><group id="SimpleControls" label="Menu Commands"><menu id="CTRl1" 


         </menu></group></tab></tabs></ribbon></customui></group></tab></tabs></ribbon></customui>
 
Last edited by a moderator:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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