+ Reply to Thread
Results 1 to 4 of 4

Hide Ribbon on Workbook Open

Hybrid View

HangMan Hide Ribbon on Workbook Open 07-10-2012, 08:13 PM
abousetta Re: Hide Ribbon on Workbook... 07-10-2012, 08:22 PM
HangMan Re: Hide Ribbon on Workbook... 07-10-2012, 08:56 PM
abousetta Re: Hide Ribbon on Workbook... 07-10-2012, 09:14 PM
  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Hide Ribbon on Workbook Open

    I'm using this code to hide the ribbon when my workbook opens, but how do I make it unique to this workbook only? At the moment, the ribbon appears hidden in all workbooks.

    Private Sub Workbook_Open()
        Application.ExecuteExcel4Macro "Show.Toolbar(""Ribbon"",False)"
    End Sub
    
    Private Sub Workbook_Close()
        Application.ExecuteExcel4Macro "Show.Toolbar(""Ribbon"",True)"
    End Sub

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Hide Ribbon on Workbook Open

    Hi,

    Have a look at the code I have posted here. Simple put you will have to add activate and deactivate workbook functions so that Excel know whether or not to show the ribbon.

    Let me know if you have any trouble adapting my code.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Hide Ribbon on Workbook Open

    abousetta,

    Many thanks, that did the trick...

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Hide Ribbon on Workbook Open

    Glad it all worked out. If you are satisfied with the results then please mark the thread as solved.

    Also we have a competition this month on Excel Forum, please stop by and click on the like button of the tips you find of benefit.

    Good luck.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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