+ Reply to Thread
Results 1 to 6 of 6

Customise ribbon when installing Add-In

  1. #1
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Customise ribbon when installing Add-In

    Ok, so I got my macro working as it should and I’ve saved the template as an Add-in to distribute to the rest of my team.

    What I would like to do now is have the ribbon automatically customised when everyone else installs the add-in, so they don’t have to individually have to add a new group to use the macro. Is this possible?

    Ideally I would like to have the Add-in assigned to the following path Home>Custom Group>Macro, and perhaps have the smiley face icon assigned to it as well (the macro is really going to save us a lot of time so it’ll make everyone happy!)

    How do I go about this?
    Last edited by Seraph84; 10-02-2011 at 02:06 PM.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Customise ribbon when installing Add-In

    Hi Seraph84,

    For that you would need to modify the CustomUI.xml file in the Excel spreadsheet.

    Perhaps this website would be of some interest to you.
    http://www.rondebruin.nl/ribbon.htm

  3. #3
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Customise ribbon when installing Add-In

    Thanks for the link. Unfortunately the firewall at work is preventing me from downloading from those links.

    Any other way I can do this? Like inserting the code into a another module maybe?

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Customise ribbon when installing Add-In

    Unfortunately, I don't know any method of editing Ribbons using VBA. To my (fairly limited) knowledge, it is not possible.

    You would need to manually edit the CustomUI.xml code in the excel spreadsheet. I use a free software called CustomUI to do it. And you would need to learn some basic XML

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Customise ribbon when installing Add-In

    If you don't mind the button ending up on the Addins tab, you can use the old Commandbars collection just as used in previous versions of Office.
    Everyone who confuses correlation and causation ends up dead.

  6. #6
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Customise ribbon when installing Add-In

    So i managed to get this working. i downloaded the CustomUI Editor and did the neccessary addtions to my template. I then emailed the XML files that contain the changes to my work, and then used winzip to insert the files to my add-in template.

    Been doing some reading, and there is no way of using VBA only to customise the ribbon with the later versions of Office.

    Thanks for the links, its a big help!

+ 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