+ Reply to Thread
Results 1 to 2 of 2

Modifying Ribbon via XLAM

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    50

    Modifying Ribbon via XLAM

    I have an old Excel 2003 xla file that has some macros that are needed for some files, this used a custom toolbar. I attach the add-in upon opening the excel remotely from Visual Basic. This works fine in every Excel version up to 2010. The custom toolbar doesn't show in 2016 (and probably 2013). I googled this and it said to close all documents and reopen, that didn't work. I was thinking of creating a custom ribbon, but I am not sure how to attach it. I created a ribbon, and saved the XLAM file, but the ribbon appears to always be on. I was hoping I could dynamically turn this on/off by loading an add-in or via some macro or something. I appreciate any guidance.

  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: Modifying Ribbon via XLAM

    To show / hide a ribbon via macro, you'll need to use the GetVisible call back. Depending on how and which ribbon you want to show / hide, you need to create the callback for it.

    For example, in customUI you have a tab that says
    Please Login or Register  to view this content.
    and in the workbook macro you would have something like

    Please Login or Register  to view this content.
    Perhaps going through this http://www.rondebruin.nl/win/s2/win012.htm would help.

+ 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. [SOLVED] Modifying Excel Ribbon for Executing AddIn Sub Procedures
    By brassrat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-29-2016, 08:45 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. [SOLVED] How does one activate ribbon components from an xlam file ?
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2015, 10:06 PM
  4. [SOLVED] Ribbon Change based on Non-Ribbon Object
    By diakonos1984 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-07-2014, 01:18 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. [SOLVED] Excel 2007-Customize the Ribbon using a xlam file instead of a xlsm file.
    By oteixeira in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 12:31 PM
  7. Ribbon - Multiple xlam adding into single Ribbon tab
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2011, 03:40 PM

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