ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   password protecting worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/161682-password-protecting-worksheet.html)

MelB

password protecting worksheet
 
I have a workbook with seven worksheets. I would like to create a unique
password for each of the seven worksheets within the workbook. Is this
possible, if so how is it done?

Mike H

password protecting worksheet
 
Hi,

Simply select each of the sheets in turn and then:-

Tools|Protection|Protect worksheet

Enter a password which can be different for each sheet.

Mike

"MelB" wrote:

I have a workbook with seven worksheets. I would like to create a unique
password for each of the seven worksheets within the workbook. Is this
possible, if so how is it done?


Gord Dibben

password protecting worksheet
 
Either protect each sheet manually or use this macro.

With a list of passwords in first sheet in A1:A7

Sub ProtectAllSheets()
Application.ScreenUpdating = False
Dim n As Single
For n = 1 To Sheets.Count
Sheets(n).Protect Password:=Sheets(1).Cells(n, 1).Value
Next n
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP


On Wed, 10 Oct 2007 22:16:00 -0700, MelB wrote:

I have a workbook with seven worksheets. I would like to create a unique
password for each of the seven worksheets within the workbook. Is this
possible, if so how is it done?




All times are GMT +1. The time now is 02:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com