+ Reply to Thread
Results 1 to 3 of 3

How to "freeze" custom UI ribbon tab when working with two workbooks ?

  1. #1
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    How to "freeze" custom UI ribbon tab when working with two workbooks ?

    I have a custom ribbon tab made via Excel "Customize the Ribbon..."
    which I put the tab as the first tab (before HomeTab),
    and the name of tab, say "MyTab-1".

    I have another custom ribbon tab made via Custom UI program
    which I put the tab as the last tab,
    and the name of this tab, say "MyTab-2".

    When I work with two workbooks opened which I activate back and forth on each,
    the ribbon tab is always coming back to "MyTab-1" IF the last active workbook is in "MyTab-2".

    Example :
    Workbook-1 and Workbook-2 are opened. (WB1 and WB2).

    I am working in WB1 with "MyTab-2" active.
    Next I need to see WB2, so I activate WB2.
    But then in WB2, the ribbon "MyTab-2" jumps to "MyTab-1".
    Since I still need (and always need) to work with "MyTab-2",
    that "jump" caused me to click "MyTab-2".

    The next time, when I activate WB1,
    again, the ribbon "MyTab-2" jumps to "MyTab-1" in WB1
    which caused me to click (again) "MyTab-2".

    That kind of situation is a bit annoying for me,
    because every time I change/activate the workbook back and forth -
    I always have to click "MyTab-2" again and again.

    It's not happening if the active ribbon tab is the default (built in) Excel ribbon tab.
    For example, I work in WB1 with "FormulasTab" active.
    After I go to WB2, the "FormulasTab" stay put. So "FormulasTab" shows in WB2.
    Go back to WB1, the "FormulasTab" also stay put. WB1 has this "FormulasTab" active.

    I wonder, is there a way to freeze "My-Tab2",
    so whenever I go back and forth within those two workbooks, "My-Tab2" always active ?

    Any kind of help would be greatly appreciated.
    Thank you in advanced.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to "freeze" custom UI ribbon tab when working with two workbooks ?

    Hi as far as I know the Ribbon is part of the active file only, so if you switch file the custom ribbon for that file (if any) is shown and the other 'disappears'.
    The only way would be to place both xlm ui in the personal macro book as two ribbon groups and then click the one you need when you switch files, I know the explanation is minimal but the thing is the only common ribbon is the personal macro book or an Addin with bot xml code settings.
    It's easier to do that explain
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: How to "freeze" custom UI ribbon tab when working with two workbooks ?

    Hi Keebelah,
    Thank you for your answer.
    I will try your suggestion.

+ 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. Replies: 2
    Last Post: 07-13-2018, 11:52 PM
  2. "Freeze Panes" is dividing page into 4 "blocks"
    By bcamp1973 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2015, 01:38 AM
  3. [SOLVED] Convert from "general" (YYYYMMDD) to specific "custom" format (YYYY.MM.DD)
    By Ella_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 02:23 AM
  4. Freeze Column headings without using "Freeze" function
    By markymark84 in forum Excel General
    Replies: 1
    Last Post: 02-19-2012, 06:40 PM
  5. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  6. Replies: 5
    Last Post: 03-22-2006, 01:30 PM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 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