Consulting

Results 1 to 3 of 3

Thread: Custom Ribbon XML - Create a Dropdown with Additional SubMenu

  1. #1

    Custom Ribbon XML - Create a Dropdown with Additional SubMenu

    Hi,
    I'm having a little dabble with creating a Custom Ribbon as an "AddIn", and to save a lot of space I'm trying to create dropdown menus.

    I've successfully created a dropdown menu that looks like this:



    However, I was wondering if this kind of dropdown menu was possible?
    Note the arrow, and additional submenu



    Of course, I've tried to Google this... and Google has helped me a lot up to this point. I'm just trying to take it that extra step further.
    Thanks
    Last edited by ashleyuk1984; 12-16-2014 at 09:14 AM.

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Yes you can. this example has 3 levels of menus

    <customUI  xmlns="http://schemas.microsoft.com/office/2006/01/customui" >
        <ribbon >
            <tabs >
                <tab 
                    id="Tab1"
                    label="Tab1">
                    <group 
                        id="Group1"
                        label="Group1">
                        <menu 
                            id="Menu1"
                            imageMso="FormulaMoreFunctionsMenu"
                            label="Menu1"
                            size="large">
                            <menu 
                                id="Menu2"
                                label="Menu2">
                                <button 
                                    id="Button1"
                                    label="Button1"/>
                                <button 
                                    id="Button2"
                                    label="Button2"/>
                            </menu >
                            <menu 
                                id="Menu3"
                                label="Menu3">
                                <button 
                                    id="Button3"
                                    label="Button3"/>
                                <button 
                                    id="Button4"
                                    label="Button4"/>
                            </menu >
                            <menu 
                                id="Menu4"
                                label="Menu4">
                                <button 
                                    id="Button5"
                                    label="Button5"/>
                                <menu 
                                    id="Menu5"
                                    label="Menu5">
                                    <button 
                                        id="Button6"
                                        label="Button6"/>
                                    <button 
                                        id="Button7"
                                        label="Button7"/>
                                </menu >
                            </menu >
                        </menu >
                    </group >
                </tab >
            </tabs >
        </ribbon >
    </customUI >
    Last edited by SamT; 12-17-2014 at 09:27 AM.
    Cheers
    Andy

  3. #3
    Exactly what I was looking for. Thanks Andy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •