+ Reply to Thread
Results 1 to 9 of 9

Hide Ribbon

  1. #1
    Registered User
    Join Date
    03-07-2019
    Location
    Santpoort Zuid, Netherlands
    MS-Off Ver
    2016
    Posts
    30

    Hide Ribbon

    I have the following code in vba, but with this I make all ribbons invisible.
    Now I want that only the ribbon of the relevant sheet is invisible. and if I open another sheet that the ribbon is visible there.

    Private Sub Workbook_Open()
    Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"

    End Sub

  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: Hide Ribbon

    The place the code in the worksheet module and not in the workbook module
    WorkSheet_Activate
    ---
    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
    Registered User
    Join Date
    03-07-2019
    Location
    Santpoort Zuid, Netherlands
    MS-Off Ver
    2016
    Posts
    30

    Re: Hide Ribbon

    thanks for the reply, but that is not working. nothing happens.

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

    Re: Hide Ribbon

    Can you explain what DOES happen?
    You'll probably have to add a check if already minimized to maximize and vv

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

    Re: Hide Ribbon

    Try this file and select the other sheet and then back to the first one
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-07-2019
    Location
    Santpoort Zuid, Netherlands
    MS-Off Ver
    2016
    Posts
    30

    Re: Hide Ribbon

    i copied the codes in my sheets and it doesnt work, very strange

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

    Re: Hide Ribbon

    What did you copy and what did you do?
    Moet gewoon werken.

  8. #8
    Registered User
    Join Date
    03-07-2019
    Location
    Santpoort Zuid, Netherlands
    MS-Off Ver
    2016
    Posts
    30

    Re: Hide Ribbon

    ik heb de codes in allebei de sheets gekopieerd en in mijn sheets gezet. daarna opgeslagen en geopend en er gebeurd niks

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

    Re: Hide Ribbon

    For this section we continue in English.
    Check the code lines and see what they do:

    One sets it True (minimized) and the other sets it False.
    You will have to play around with it.
    Else attach a sample book and explain what you want with which sheet.
    I musr say that hiding and showing the ribbon gives a very unpleasant effect, but that's your decision and choice.

+ 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] Hide Ribbon
    By EssoExplJoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2017, 10:32 AM
  2. [SOLVED] Hide Ribbon
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2013, 03:01 AM
  3. Hide the Ribbon in Excel
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2013, 12:33 PM
  4. Hide ribbon and toolbar
    By NathalieF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 04:34 AM
  5. Code to hide Ribbon
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-06-2012, 04:06 AM
  6. Hide Tab on Custom Ribbon
    By WilliamJones in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2011, 08:53 AM
  7. Ribbon - Hide the Get Started tab
    By paulzak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2009, 09:03 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