+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Hiding and Showing Excel 2007 Ribbon

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Hiding and Showing Excel 2007 Ribbon

    Hi everybody,

    I use the following tow VBA Codes for Hiding and Showing Excel toolbars, and they work perfectly with Excel 2003.

    However, when I used them with Excel 2007, they also worked well, but once the user presses Escape Key Or Double Clicks Window Frame, the ribbon and Worksheet Menu Bar appear.

    Please Login or Register  to view this content.
    So, Is there any solution for that???

    Best Regards,
    Last edited by LoveCandle; 01-25-2010 at 03:38 AM.

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

    Re: Hiding and Showing Excel 2007 Ribbon

    Try this
    Please Login or Register  to view this content.
    Change false to true to restore
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Hiding and Showing Excel 2007 Ribbon

    hello.

    from my experience with the excel 2007 ribbon. It cannon be changed within VBA, With a quick glance at the code what is mostlikely happening is the application is displaying in fullscreen and the dblclick takes it out of fullscreen.

    if you want to remove the 2007 toolbars you can use somethink like (office 2007 custon UI editor) and tell it to START FROM SCRATCH.

    Andy pope has some information on his site that talks about the 2007 ribbon

    hope this helps


    well there you go, Roy you done it again. ill have to rember that one.


  4. #4
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Hiding and Showing Excel 2007 Ribbon

    Hi,

    Thank you both for your replies.

    royUK: I tried your code and it didn't work with me at all,

    D_Dennie: Can you please provide me with a link of Andy's Pope 2007 ribbon topic?

    Best Regards,

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

    Re: Hiding and Showing Excel 2007 Ribbon

    Works for me
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Hiding and Showing Excel 2007 Ribbon

    Here is the link for the addin that andy wrote http://www.andypope.info/vba.htm

    and another great resoruce for ribbon related stuff http://www.rondebruin.nl/ribbon.htm

    what roy has posted works for me. true to show, false to hide.

  7. #7
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Hiding and Showing Excel 2007 Ribbon

    Thank you both so much for your help >> royUK code works perfectly,

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

    Re: Hiding and Showing Excel 2007 Ribbon

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Hiding and Showing Excel 2007 Ribbon

    Hi again,

    I added some lines to royUK's code in order to reach my goal completely,

    Please Login or Register  to view this content.
    Thanks and best regards,
    Attached Files Attached Files

+ 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