Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Excel 2007, hide protect sheets part of ribbon

Posted on 2011-04-22
Medium Priority
Last Modified: 2012-05-11
I am trying to protect an excel workbook, but I want users to be able to unprotect and protect certain parts with pre-defined passwords.

I have a form for passwords, but what I looking for is a way to hide the "Protect Sheet" or  "UnProtect Sheet" part of the ribbon.

Any help appreciated
Question by:kieranjcollins
  • 2
LVL 30

Expert Comment

ID: 35447692
If you want you can hide the entire Office Ribbon by right clicking on it and selecting Hide. Please see snapshot.

LVL 12

Expert Comment

ID: 35447731

Author Comment

ID: 35448313
I'm going to re-phrase the question

Can I deactivate the "Unprotect Sheet" or "Protect Sheet" parts of the ribbon so that users can only protect and unprotect through predefined buttons on a sheet.

Done this in Excel 2003 with the attached code in "ThisWorkbook"

Private Sub Workbook_Open()
' Sub to disable protection toolbar

Application.CommandBars("Worksheet Menu Bar").Controls("Tools").Controls("Protection").Enabled = False

Application.OnKey "%{f8}", ""

End Sub

Open in new window

LVL 30

Accepted Solution

SiddharthRout earned 2000 total points
ID: 35448371
I am not sure if you can do that in 2007. I believe in 2010 it can be done.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question