+ Reply to Thread
Results 1 to 6 of 6

How to unprotect a sheet with ribbon hidden?

  1. #1
    Registered User
    Join Date
    01-19-2021
    Location
    Sacramento, CA
    MS-Off Ver
    Microsoft 365 Personal
    Posts
    7

    How to unprotect a sheet with ribbon hidden?

    I have a game that I have written using Excel VBA that I haven't worked on for a while. I seem to have myself locked out of making any changes. I have the ribbon hidden, and the sheet protected with a password. When I try to enable the ribbon with ALT-F1, I get an error that I can't do that on a protected sheet, and it tells me how to unprotect it. But I can't do that without access to the ribbon functions. Any ideas on other ways to enable ribbon and/or unprotect the sheet? Thanks.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to unprotect a sheet with ribbon hidden?

    I think you'll find that is because Alt+F1 is the keyboard shortcut for adding a chart to a sheet, not enabling the ribbon.

    BSB

  3. #3
    Registered User
    Join Date
    01-19-2021
    Location
    Sacramento, CA
    MS-Off Ver
    Microsoft 365 Personal
    Posts
    7

    Re: How to unprotect a sheet with ribbon hidden?

    You're right, BSB. Should be CNTL+F1 to hide/unhide. But... that keystroke does nothing in my situation. :-( Ribbon doesn't appear.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to unprotect a sheet with ribbon hidden?

    In that case I think it all comes down to how you have "hidden" the ribbon.

    The two lines below will hide the ribbon to a different degree.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    The first will just minimise it and allow the Ctrl+F1 to show it again.
    The second will really hide it and Ctrl+F1 will not work to show it again.

    If you've used the second one then you could set up a mini macro that switches it back on and assign a keyboard shortcut to that.

    BSB

  5. #5
    Registered User
    Join Date
    01-19-2021
    Location
    Sacramento, CA
    MS-Off Ver
    Microsoft 365 Personal
    Posts
    7

    Re: How to unprotect a sheet with ribbon hidden?

    I found a way to work around my "locked out" problem. If I open a "normal" spreadsheet (no locking or hiding), but one that has some VBA code, I can then access the code for my "problem" sheet from there, and make changes. :-)

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to unprotect a sheet with ribbon hidden?

    Sounds like a complicated workaround to me.
    Perhaps some code on the workbook open event that says "is the current user the administrator for this file? if so, do you want to show all the ribbon options and whatnot?" might be better...?

    Just a thought (from someone whose job involves managing hundreds of different Excel based tools with many thousands of users!)

    BSB

+ 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] Display Hidden Cell Contents in Formula Bar Ribbon
    By ExcelQuestFL in forum Excel General
    Replies: 9
    Last Post: 12-02-2021, 10:44 AM
  2. [SOLVED] Display a custom Ribbon Tab from a hidden workbook
    By aquixano in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2017, 12:37 AM
  3. [SOLVED] Events if ribbon is hidden or visible
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-26-2016, 10:53 AM
  4. EXCEL VBA: Unprotect and Protect Sheet [Hidden Sheet]
    By himaruasuka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2016, 09:06 AM
  5. Macro to unprotect sheet - run macros - then unprotect sheet is not working
    By AnnieBrownTX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 06:59 PM
  6. VBA Function Vlookup data from Hidden sheet in hidden workbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2008, 11:22 PM
  7. Replies: 2
    Last Post: 07-20-2006, 02:51 PM

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