+ Reply to Thread
Results 1 to 4 of 4

Get Ribbon File Name

  1. #1
    Registered User
    Join Date
    01-15-2022
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    30

    Get Ribbon File Name

    Is there a way to get the name of the ribbon that we're using when we import the ribbon to workbook? Probably using "onLoad" function?
    This question has been in the MrExcel(sorry cannot give any links due to insufficient total posts), so I'll ask again after several days/weeks. If there is a way to remove this post, I'll be happy to take down this post. Sorry for disturbing.

    This is the sample code on the ribbon:

    HTML Code: 
    This is the vba code of onLoad:

    Please Login or Register  to view this content.
    Last edited by kal0123456789; 01-19-2022 at 07:43 AM. Reason: Adding Link for Cross Posting

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Get Ribbon File Name

    Not sure I understand your request. I believe this code was designed by Ron de Bruin.
    https://www.rondebruin.nl/win/s2/win001.htm
    I have not accessed it for over two years, so no not sure if he is still active
    Last edited by AB33; 01-19-2022 at 10:41 AM.

  3. #3
    Registered User
    Join Date
    01-15-2022
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Get Ribbon File Name

    I thought I need to ask in the other day, but since you have replied, I'll answer then.

    Supposedly the XML customUI file is "custom.exportedUI". I want the "custom.exportedUI" file name to be known in VBA, so I know that it's from "custom.exportedUI", not from for example "custom2.exportedUI" file. Since the file name can probably be seen when it's being imported to Excel, is there a way to grab the file name by VBA?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Get Ribbon File Name

    The simple answer is I do not know, but if I were to guess "custom.exportedUI" is part of XML language, You need to run a code to specifically parse the name—XML parser.

+ 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. File on the ribbon not there
    By blubarb in forum Excel General
    Replies: 11
    Last Post: 02-16-2021, 05:27 AM
  2. Where does this file's custom ribbon tab come from?
    By muse43 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-26-2019, 10:47 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] 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
  5. [SOLVED] Customize Excel Ribbon When File Opens
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2013, 04:04 PM
  6. [SOLVED] Ribbon Edit the existing file
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-13-2012, 07:56 PM
  7. Replies: 4
    Last Post: 04-08-2010, 01:30 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