+ Reply to Thread
Results 1 to 24 of 24

Excel 2007 : Custom Ribbon

  1. #1
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Custom Ribbon

    Hello,

    Does anyone know where I can find a 'simple' guide to creating custom ribbons without using any programs other then Excel 2007 (I cant get additional programs due to company policy).

    Thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    In order to customize the ribbon you only need notepad.
    You would need to alter the file type to zip by altering the file extension.
    Open and add the correct files and folders. Adding appropriate xml text.

    Information and links
    http://www.rondebruin.nl/ribbon.htm

    Excel addin
    http://www.andypope.info/vba/ribboneditor.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Thanks - But aren't those links examples using Add In's or third party software?
    I can use notepad to do it, but i need to find some instructions toe tell me what to edit etc.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Simple Excel 2007 Custom Ribbon Help

    Ron de Bruin's link describes how to create the necessary XML file

    Regards

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    The addin is an excel file that only requires Excel 2007.

    Did you follow the links at the end of Ron's page to the MSDN site or the example book chapter on Stephen Bullen's site?

  6. #6
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Sorry I didnt realise. Ill try it,

  7. #7
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Hi Andy - Ive now installed the add in and am working through an example. Ive managed to create a tab but I am unable to insert any items. I can add groups, but it says Cannot Add Item.
    Have you seen this before? Am I doing it all wrong?

    Thanks

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    What type of control are you trying to add to your group?

    If you are trying to add the Item control then first you will need to create a control that can contain Item controls, such as combobox.

  9. #9
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    I added a new tab "Ribbon>Tabs>MyTab" then anything I try to add, combobox, button, etc tells me "Button/Combo box/etc cannot be inserted in MyTab.

    Thanks

  10. #10
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Ah I think ive got it now

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    construct should be
    Add a Tab
    Add a Group
    Add a Control

    If you have not done so I strongly recommend you read the Stephen Bullen chapter.

  12. #12
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    This is great - really great and something that MS should have included in this version by default.
    I do have one more question for you if thats OK?
    Unless ive missed it in your guide, is there a way to have my custom ribbon open in any Excel 2007 workbook I open?
    Thanks

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    In order for the ribbon to be shared you need to create an addin (.xlam) file.

  14. #14
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Thanks - Ill look at that next.
    Is there a way that functions can be called directly rather then as a macro? Such as Print Area?

  15. #15
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    Sorry your question does not make sense.
    Can you explain further?

  16. #16
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Sorry - What I mean is, for example, on a normal Excel ribbon i press set print area, and it does exactly that. Is there a way to refer to that existing fucntion rather then create a macro to set print area?

    Thanks

  17. #17
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    If you want to mimic the set print area functionality with your own button then you just need to add a button with the correct idMso value. No macro code required.

  18. #18
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Simple Excel 2007 Custom Ribbon Help

    Thanks - Thats exactly what I want to do, but ive run into a problem.
    Ive change a buttins function to idMSO and removed the ref to the macro, but now when I open the file, my custom ribbon isnt there.
    From a backup Ive tried this using AutoFilterClassic, and FileNew.
    ASny ideas what Ive done wrong?

    Thanks

  19. #19
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Simple Excel 2007 Custom Ribbon Help

    No idea at all.

    can you post the file?

  20. #20
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Custom Ribbon

    Hi and thanks for the offer – I started again and so far it seems to be working as I expect.
    I've added a gallery button to change font colours, but its not the same as the Home tab button (the Home tab button is a separate button to choose the currently selected colour, and a down arrow to open the palette).
    Is there a way to use this button that im not seeing?
    Thanks

  21. #21
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Custom Ribbon

    This creates new tab/group and font colour picker.
    The buttongroup gives it the surrounding border

    Please Login or Register  to view this content.

  22. #22
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Custom Ribbon

    Hi again Andy. Hope all is good for you.
    Ive been working on custom ribbons a bit now but I have a problem that crops up every so often which will cause a headache when/if I need to add controls to the tab.
    Last time I started from scratch, but I cant do that each time.
    The problem I have is that sometimes, making a change using RibbonX (just changing a tab name, or adding a dialogue launcher), causes the ribbon to vanish when its workbook is open. Also, I added a group for macro's but it doesn't show. Do you know what would cause this? The XML is below. Thanks for any help.
    Please Login or Register  to view this content.

  23. #23
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Custom Ribbon

    First issue is you have defined both Id and idMso values for some the controls, which you should not do.

    Please Login or Register  to view this content.
    As you have no OnAction set I assume you only need idMso values.

  24. #24
    Registered User
    Join Date
    07-23-2004
    MS-Off Ver
    2007
    Posts
    94

    Re: Custom Ribbon

    Excellent! Many thanks for your quick reply :o)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1