Search TeachExcel.com
TeachExcel.com
TE
Teach Excel MS Office Tutorials Excel Consulting Services Excel Forum
Excel Video Tutorials Excel Tips Free Excel Macros Excel Help Resources Contact TeachExcel
Video Tutorials
  • Free Macros
  • Excel Help Directory
  • Excel 2007 Resources
  • Keyboard Shortcuts
  • Excel Forum
  • Contact/About

Tutorials: Security



Featured Tutorial
Dynamically Update Drop-Dowm Menus in Excel
Featured Macro
Delete Empty Rows in Excel

How to 'Protect' a Worksheet and Workbook

Video | Similar Helpful Excel Resources

Bookmark and Share

You can make it so that no one, or only a certain person or group of people, can edit or change anything in your spreadsheet or workbook. Doing this is called protecting a worksheet, and it allows you to require a password in order to edit certain or all cells. This will help protect your worksheet from accidental deletions or additions.
   Topics Covered
How to Protect a Worksheet and Workbook
Preventing others from changing your spreadsheet
Allowing select users acess to certain parts of a worksheet
Password protecting all or parts of a worksheet or workbook
   Difficulty:         Easy
   Video:               Yes



Got a Question? Ask it Here in the Forum.



Similar Helpful Excel Resources

Protect Every Worksheet In Workbook - Excel

View Content
hi
can u supply code for protecting everysheet in a workbook (didnt get much joy in help file)

thanks
Andy

Shared Workbook - Protect Worksheet - Excel

View Content
Hello

Why is it not possible to unprotect/protect worksheets via VB code in a shared workbook?

Is there any way round this?

Thanks

Chard

Password Protect One Worksheet In A Workbook - Excel

View Content
I am working with two vendors who are sending me pricing quotes in an excel spreadsheet. I want to put both quotes in one workbook and password protect each sheet so that only the vendor can see his sheets of price quotes but not the other vendors. This will be a one time occurrence. What is the best way to accomplish this??

Thank you!!!

How Do I Protect A Worksheet From Being Opened Inside A Workbook - Excel

View Content
I would like to know if there is a way to protect or lock a worksheet, inside
a workbook, so that other users cannot even open the worksheet. I am
familiar with how to password protect a worksheet so users cannot edit or
modify locked cells, however, I would like to keep other users from even
going into the other worksheets within the workbook. I have not yet found a
method for doing so.

Or is there a way to "hide" a worksheet within the workbook so that other
users cannot see it?


Protect Workbook Vs Protect Shared Workbook - Excel

View Content
HEEEELP!

I want to load a locker assignment workbook onto our school server. That way several of us can issue lockers to our students at the same time, at beginning of the school year. I was looking at the tool Protect Shared Workbook. Can you tell me what Protect Shared Workbook does? Will that allow more than one person to use the workbook at the same time, so for example; one person can issue lockers starting with #2001, while another person beginning with #3001, etc.? When I use just Protect Workbook (not shared) it tells me that it is a read only file. But with Protect Shared Workbook, it allows me to enter data. Thanks.

Auto Protect Workbook Tabs Upon Closing The Workbook - Excel

View Content
I have a workbook that has 6 tabs. Can I auto protect each tab upon closing the workbook if the user forgets to do so?

Unprotect Workbook On Open @ The End Of The Script, Protect The Workbook... - Excel

View Content
So i have a module running...when the workbook opens...

Code:

Sub Check_workbook()
Dim fpath As String
Dim strFileName As String
Dim strDateName As String
Dim FSOobj As Object
ActiveWorkbook.Unprotect Password:="myPassword"
Set FSOobj = CreateObject("Scripting.FilesystemObject")
If FSOobj.FolderExists("C:\SMCCCD") = False Then
MsgBox "Please Wait While I create the Default folder in Drive C:\SMCCCD..."
FSOobj.CreateFolder "C:\SMCCCD"
Else
MsgBox "Lets Get Started..The Default Folder Exists..."
End If
Set FSOobj = Nothing
fpath = "C:\SMCCCD"
strFileName = InputBox(Prompt:="Please enter the Building Name." & vbCrLf & _
                                                     "In the Following Format:" & vbCrLf & _
                                                     "CAMPUS B-XX" & vbCrLf & _
                                                     "CAMPUS = (CSM, SKY, CAN)" & vbCrLf & _
                                                     "XX = Building Number in 2 Digit format", Title:="Save As...", Default:="Example CSM B-01")
ThisWorkbook.SaveAs Filename:=fpath & "\" & strFileName
strDateName = Format(Now, "mm/dd/yyyy hh:mm:ss AM/PM")
                                                     Sheets("Reader_DB").Range("H2:I17") = strDateName
                                                     Sheets("DCU-Input_DB").Range("H2:I33") = strDateName
                                                     Sheets("DCU-Output_DB").Range("H2:I17") = strDateName
                                                     Sheets("DCR-Input_DB").Range("H2:I33") = strDateName
                                                     Sheets("DCR-Output_DB").Range("H2:I17") = strDateName
                                                     Sheets("ACU&ACR-Input_DB").Range("H2:I25") = strDateName
                                                     Sheets("ACU&ACR-Output_DB").Range("H2:I5") = strDateName
                                                     Sheets("Camera_DB").Range("H2:I66") = strDateName
                                                     
MsgBox ("Workbook Successfully saved as " & Sheets("Summary").Range("AL2").Value & ".xls in the SMCCCD Folder on your HardDrive." & vbCrLf & _
                                                    "You are now working on " & Sheets("Summary").Range("AL2").Value & ".xls"), vbExclamation, "Successful Save"
MsgBox ("If you make any changes to " & Sheets("Summary").Range("AL2").Value & ".xls in the SMCCCD Folder.. " & vbCrLf & _
                                                    "Please remember to use the Email Macro Found on the Summary Sheet." & vbCrLf & _
                                                    " " & vbNewLine & _
                                                    "Doing this Updates the REVISION Number." & vbNewLine & _
                                                    " " & vbNewLine & _
                                                    "For Support on this WorkBook, Please Contact: javin" & vbNewLine & _
                                                    "at xx0-7xx-xxx9 or via Email: jlamantia@dedede.net"), vbExclamation, "PLEASE NOTE!!!"
ActiveWorkbook.Protect Password:="mypassword"
Sheets("Summary").Select
Range("A1").Select
End Sub


I need to Unprotect the Entire workbook so the above macro places the information it needs in its correct spot, and once completed...protect the work book...

But it keeps breaking saying that the sheets must be unprotected to do the action yada yada...Thoughts??

all my other user forms have...
Code:

ActiveSheet.Unprotect Password:="mypassword"
ActiveSheet.Protect Password:="mypassword"


and they work flawlessly...so i thought replacing ActiveSheet with Activeworkbook would work...but it wont..

Protect Formula On Worksheet But Allow Changes To The Worksheet - Excel

View Content
Hello,

What is the best excel vba formula to use in Excel 2003 to protect formulas in a worksheet from being overwritten, but allowing changes to other parts of the spreadsheet it may reference?

Protect Workbook - Excel

View Content
When I go to protect workbook it reduces by screen to about 1/4 the size. Is this Right?

How To Protect A Workbook - Excel

View Content
Hi

I am making a file in Excel which will be used by some more unexperienced users. It will be some kind of price list calculation.
It has quite some VBA items, which puts some results into the cells of the sheet.
Is it possible to protect the main part of the sheet and still allow to the VBA to put the datas into the cells which are on the protected parts?
How to do this?

Contact | Privacy Policy | Disclaimer
Copyright© 2012 TeachExcel.com