+ Reply to Thread
Results 1 to 13 of 13

Hide All Ribbon Tabs except Custom Tab

  1. #1
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Hide All Ribbon Tabs except Custom Tab

    Hello,

    I have the following HTML code in Custom UI editor:

    Please Login or Register  to view this content.

    In my Excel spreadsheet I have the following code in Sheet1:


    Please Login or Register  to view this content.
    The above runs as follows:

    As the spreadsheet is opened, the Home, review and insert tabs are hidden by setting Visible to false.
    However, the formulas tab is still visible???

    Can someone point out as to what I am doing wrong ?

    Al I want to do is hide all the tabs except one tab which is my custom one.

    Crossposted: Modifying ribbon tabs?


    Thanks all
    Rn
    Last edited by Leith Ross; 05-24-2015 at 12:36 AM. Reason: Added Crosspost Link

  2. #2
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Hide All Ribbon Tabs except Custom Tab

    Does Anyone have an idea.....?

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hide All Ribbon Tabs except Custom Tab

    Hello RustyNail,

    I have never really done any work with the Ribbon. I remember reading up on it about a year ago and lost interest. Then it was rather complex and unstable coding conundrum and I don't think that has changed much. But, I will look into it for you and post back. In the meantime, perhaps another member knows the answer and will share it.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274
    Quote Originally Posted by Leith Ross View Post
    Hello RustyNail,

    I have never really done any work with the Ribbon. I remember reading up on it about a year ago and lost interest. Then it was rather complex and unstable coding conundrum and I don't think that has changed much. But, I will look into it for you and post back. In the meantime, perhaps another member knows the answer and will share it.
    Yeah I've been reading articles here and there as well and I find
    it difficult to apply ....

    In any case ....
    Thanks Leith Ross.... I really appreciate it!

    Rn

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hide All Ribbon Tabs except Custom Tab

    Hello RustyNail,

    Still searching for information related to your problem. So far, nada.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hide All Ribbon Tabs except Custom Tab

    Hello RustyNail,

    If you decide to post your question elsewhere to improve your chances for a solution, the forum rules state you should include the other site or sites where you have posted your question.

    As a courtesy, I have added the link to Mr Excel to your first post.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Hide All Ribbon Tabs except Custom Tab

    The idMso for the formula tab is TabFormulas

    if you want to remove all tabs excepty ones you create for the file then use StartFromScratch

    Please Login or Register  to view this content.
    so this will create a single custom tab, group and button.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  8. #8
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Hide All Ribbon Tabs except Custom Tab

    Hi Leith Ross,

    I figured that we need to add the prefix "Tab" to the tab name. The script below works now.... Except... ="TabPageLayout" never worked

    Go figure!!!!!

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Hide All Ribbon Tabs except Custom Tab

    If you decide to post your question elsewhere to improve your chances for a solution, the forum rules state you should include the other site or sites where you have posted your question.

    As a courtesy, I have added the link to Mr Excel to your first post.
    cool!

  10. #10
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Hide All Ribbon Tabs except Custom Tab

    Hi Andy,

    Yes, I had heard of StartFromScratch but was always afraid of it and never tried it

    So yes, I finally tried by using your example and it worked great!

    Thanks
    Rn

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Hide All Ribbon Tabs except Custom Tab

    The idMso is TabPageLayoutExcel

  12. #12
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Hide All Ribbon Tabs except Custom Tab

    "The idMso is TabPageLayoutExcel"

    Was wondering where can we get information about tab naming ?

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Hide All Ribbon Tabs except Custom Tab

    this resource pack should detail on idmso items
    https://www.microsoft.com/en-us/down...s.aspx?id=1574

    there are equivalent for 2007 and 2013.

+ 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. 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
  2. [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
  3. [SOLVED] Now you see it, now you don't - Use XML to hide/unhide standard Ribbon tabs?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 12:05 PM
  4. [SOLVED] Excel 2010 - Hide custom tab on ribbon using VBA
    By jellyjen17 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2012, 12:28 AM
  5. Hide Tab on Custom Ribbon
    By WilliamJones in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2011, 08:53 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