+ Reply to Thread
Results 1 to 3 of 3

custom ribbon buttons by VBA

  1. #1
    Registered User
    Join Date
    04-18-2017
    Location
    NW,UK
    MS-Off Ver
    MS Office 2013
    Posts
    89

    custom ribbon buttons by VBA

    Hello Forum

    Is it possible with out the use of 3rd party software to create a custom tab and then a custom group in the ribbon that is available only in the workbook and for all users.

    The company i work for will not let me install unknown 3rd party software so it is not a option.

    Thank you in advance.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: custom ribbon buttons by VBA

    You need a few steps for that to work cleanly... opening the workbook should load the menu, closing it unload it. I tend to also add workbook activate/deactivate events to load/clear the menu, so that it does not interfere with other books.

    In the ThisWorkbook module:

    Please Login or Register  to view this content.
    In a standard module:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 05-08-2018 at 09:29 AM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: custom ribbon buttons by VBA

    Hi,
    You don't actually need third party software, it just makes the process a lot easier. You can create a CustomUI.xml file with the necessary XMl in it for your tab and controls, then add it to the zip file that makes up the workbook. If you can install an Excel add-in (xlam workbook), then Andy Pope has one on his website that will help immeasurably.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. How does it work [custom Ribbon buttons specific to my file]
    By tellmewhy? in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-25-2017, 01:56 PM
  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. [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
  5. Custom ribbon buttons don't export correctly
    By davejoseph98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2013, 11:13 AM
  6. [SOLVED] Disable buttons in custom ribbon before opening a vbModeless UserForm
    By heapifyman in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 01-14-2013, 12:38 PM
  7. Mix up of buttons in Excel Add-In ribbon - how to delete buttons?
    By lausianne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2013, 08:51 AM

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