+ Reply to Thread
Results 1 to 4 of 4

Basics of How to create an Add-in which colleagues can install giving a custom ribbon?

  1. #1
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Basics of How to create an Add-in which colleagues can install giving a custom ribbon?

    Hi

    Havent posted in ageees !

    I would be really grateful if someone could give me either high-level or detail steps on achieving the following:

    ---
    I want to create a file (which I am thinking will be an add-in), that my colleagues can import into their Excel, and when they do, they get a custom ribbon which has the frequently used tools for our work, and also buttons to launch custom macros (or VBA scripts) like formatting the sheet with our logos.

    We plan to alter the ribbon now and again with more useful buttons. We may also update the VBA scripts to automate more tasks. So I am thinking the add-in file will need to be editable somehow.
    ---

    So far:
    I have the macros in my personal workbook so I don't need help with coding the VBA.

    I installed Visual Studio and made a custom ribbon with one dummy icon (vsto type I think), which automatically loads into my Excel, but it is just a dummy button so it doesnt do anything and therefore I dont know:
    a) how to create a custom ribbon in Visual Studio (if that is the correct application to use) with a button that actually does something (like bottom borders)
    b) how to create a button in Visual Studio and link a VBA script to it
    c) how to export the ribbon from Visual Studio so that I can install it on other people's computers.

    I am only assuming Visual Studio is the software to use to get this job done - perhaps it isnt.

    Any help would be appreciated.

    Thanks

  2. #2
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Re: Basics of How to create an Add-in which colleagues can install giving a custom ribbon?

    Thanks for the info and for doing that on the other site

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Basics of How to create an Add-in which colleagues can install giving a custom ribbon?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...ibbon.1216368/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Basics of How to create an Add-in which colleagues can install giving a custom ribbon?

    Hi,
    If you're using Visual Studio then it sounds like you're creating a COM addin which essentially a compiled program that integrates with Excel.

    The more common type is an Excel addin created by saving an Excel file as .xlam

    Developing an Excel addin essentially has three parts:
    1) Creating the ribbon structure in XML
    2) Adding the vba code in the xlam file to both do whatever it is you want to do and to handle the call backs from the ribbon. The ribbon can be static, but if you want any sort of dynamic interaction, you'll need to reference routines that the ribbon action calls to determine what has occurred and what action should then be taken.
    An example of a call back would be setting a variable to determine if a checkbox was ticked or not.
    3) Distribution


    To get to the XML you'll need an editor. There's a suggestion on Ron de Bruins site but I still use Microsoft's OfficeCustomUIEditor. It's officially unsupported and doesn't work on Windows 11, but is easy to use as you just open the addin file from it.
    example of it here https://bettersolutions.com/vba/ribb...r-download.htm

    However the editor itself is poor so I usually copy it into something like Notepad++, edit there and then paste it back.

    It's pretty easy for the ribbon object in your code to lose reference to the ribbon, but there's quite a good work around on Ron's site https://www.rondebruin.nl/win/s2/win015.htm

    Distribution wise, it's simplest to have the addin file on the server and reference it there, as per the link given in the answer to your cross-post but there are problems if you want the ribbon (or bits of it) to function offline. The other option is to install it locally, but you'd have to create some versioning/installer process so that it can detect newer versions and update itself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ideas to create Excel microlearning videos for my colleagues
    By Excel_apprentice in forum Excel General
    Replies: 6
    Last Post: 06-22-2022, 04:27 AM
  2. Put VBA ribbon together with Custom UI Editor Ribbon
    By czarlando in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2016, 05:46 AM
  3. Assistance with Custom Tab and Groups on Excel Office Ribbon using Custom UI Editor.
    By sdavison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 06:13 AM
  4. Want to install custom ribbon on first run of SS, but...
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 10:39 PM
  5. [SOLVED] An alternative to the Add-Ins ribbon tab - Global Custom Ribbon Tab by Ken Puls
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2014, 10:01 PM
  6. How to create new workbook with custom ribbon in VBA
    By MichalJB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-25-2013, 02:52 PM
  7. I can't get my custom button to display on another colleagues menu bar
    By Macro1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-08-2009, 03:22 AM

Tags for this Thread

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