+ Reply to Thread
Results 1 to 4 of 4

VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.

    Hello all,
    I am trying to VBA to hide the ribbon on opening the workbook, and show on closing. I don't want to hide the toolbar. Ideally I only want it to happen on the workbook I am creating. I currently have:

    Please Login or Register  to view this content.
    But this doesn't show the ribbon on closing, and doesn't only apply it to this workbook.

    I'd also prefer it if the code didn't use the F1 toggle, but actually hid the ribbon.

    Cheers

    Luke
    Last edited by arlu1201; 08-03-2012 at 04:03 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.

    Luke,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

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

    Re: VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.

    Please Login or Register  to view this content.
    This adds 2 properties to the Thisworkbook object, which allows you to minimize or remove the ribbon.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.

    Absolutely perfect - just what I wanted, thanks Andy!

+ 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