+ Reply to Thread
Results 1 to 12 of 12

Code to hide Ribbon

  1. #1
    Forum Contributor
    Join Date
    03-03-2005
    Posts
    315

    Code to hide Ribbon

    Hi all,


    Can someone point me in the direction of getting rid of the Menu Ribbon in Excel2007-via code? It was very easily done in the earlier versions of Excel when there was no Ribbon.

    Many thanks in advance.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Code to hide Ribbon

    Hello davidm,

    What about just:

    Please Login or Register  to view this content.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    03-03-2005
    Posts
    315

    Re: Code to hide Ribbon

    Hi Winon,

    Thanks a million! That worked like charm!


    David

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Code to hide Ribbon

    Hi David, perhaps try:
    Please Login or Register  to view this content.
    Change False to True to un-hide the ribbon.

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Code to hide Ribbon

    Hi Paul, that's a first time view for me
    Please Login or Register  to view this content.
    what is Excel14Macro?
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Code to hide Ribbon

    It's "Excel4Macro", not 14.

    Old stuff still built into Excel from many eons ago that I have no clue about, to be honest. I just know there are various uses for it and Google helps! Not sure if it's still in Excel 2010 since I don't have that version.

    To view the Excel 4.0 Macro help file you can download the macrofun.exe file from Microsoft (http://www.microsoft.com/download/en...ang=en&id=1465). Install and create a folder for the contents, then run the HLP file.

    Note: If you're using Windows Vista or newer (or Server 2008+) you'll need to download Windows' Help File viewer to view HLP files. That can be downloaded here: http://support.microsoft.com/kb/917607

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Code to hide Ribbon

    @ Mordred,

    Yes, Paul did surprise me as well, however:

    what is Excel14Macro?
    It is
    what is Excel4Macro and not 14

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Code to hide Ribbon

    You are welcome David,

    If your problem is solved, please do see the notes below about marking your Thread as solved.

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Code to hide Ribbon

    Be extremely careful doing this, you must always restore features back to the original
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Code to hide Ribbon

    @ royUK,

    Yes Roy, you are right. I assumed that davidm would do just that with the WorkBook Open and Before Close Events. Something like:

    Please Login or Register  to view this content.
    And;

    Please Login or Register  to view this content.

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Code to hide Ribbon

    In my experience more people use something like this without thinking about restoring the features that they have turned off.
    Attached Files Attached Files
    Last edited by royUK; 03-06-2012 at 03:42 AM.

  12. #12
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Code to hide Ribbon

    @ royUK

    I must admit that I do prefer your "AppReset" much more!

+ 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