Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 105
Default Simple Worksheet Protection

Hi everyone,

I am just trying to lock the worksheet so no one can change anything
for all the worksheets.

I have 40 worksheets in a workbook and problem I am having is that I
do know how to lock worksheets by -tools-protection-protect sheet
but it just locks a single worksheet.

Q1. How do I lock all the other worksheet as well instead of clicking
each sheet and repeat what I just did?

Q2. Is it possible for me to set up some kind of 'track changes' and
find out where it is altered and actually who changed it?

Thank you so much for your help

Regards

James
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Simple Worksheet Protection

Q1 answer.

Protect all sheets...............

Sub ProtectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Protect Password:="justme"
Next N
Application.ScreenUpdating = True
End Sub

Unprotect all sheets....................

Sub UnprotectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Unprotect Password:="justme"
Next N
Application.ScreenUpdating = True
End Sub

Protect selected sheets..........................

Sub Protect_Selected_Sheets()
Application.ScreenUpdating = False
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ws.Protect Password:="justme"
Next ws
Application.ScreenUpdating = True
End Sub

Unprotect selected sheets................

Sub UnProtect_Selected_Sheets()
Application.ScreenUpdating = False
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ws.UnProtect Password:="justme"
Next ws
Application.ScreenUpdating = True
End Sub

Q2.....questions

Is the workbook shared? You can track changes when it is.

Not shared? How and when would the workbook be accessed.

What changes would you want tracked.........all...........some?

It is easy enough to timestamp changes made and by whom but what constitutes
a change and would you want this recorded when someone saves the workbook?


Gord Dibben MS Excel MVP

On Mon, 4 Aug 2008 17:12:57 -0700 (PDT), James8309
wrote:

Hi everyone,

I am just trying to lock the worksheet so no one can change anything
for all the worksheets.

I have 40 worksheets in a workbook and problem I am having is that I
do know how to lock worksheets by -tools-protection-protect sheet
but it just locks a single worksheet.

Q1. How do I lock all the other worksheet as well instead of clicking
each sheet and repeat what I just did?

Q2. Is it possible for me to set up some kind of 'track changes' and
find out where it is altered and actually who changed it?

Thank you so much for your help

Regards

James


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 105
Default Simple Worksheet Protection

On Aug 5, 2:09*pm, Gord Dibben <gorddibbATshawDOTca wrote:
Q1 answer.

Protect all sheets...............

Sub ProtectAllSheets()
* * Application.ScreenUpdating = False
* * Dim N As Single
* * For N = 1 To Sheets.Count
* * * * Sheets(N).Protect Password:="justme"
* * Next N
* * Application.ScreenUpdating = True
End Sub

Unprotect all sheets....................

Sub UnprotectAllSheets()
* * Application.ScreenUpdating = False
* * Dim N As Single
* * For N = 1 To Sheets.Count
* * * * Sheets(N).Unprotect Password:="justme"
* * Next N
* * Application.ScreenUpdating = True
End Sub

Protect selected sheets..........................

Sub Protect_Selected_Sheets()
Application.ScreenUpdating = False
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
*ws.Select
* *ws.Protect Password:="justme"
Next ws
*Application.ScreenUpdating = True
End Sub

Unprotect selected sheets................

Sub UnProtect_Selected_Sheets()
Application.ScreenUpdating = False
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
*ws.Select
* *ws.UnProtect Password:="justme"
Next ws
*Application.ScreenUpdating = True
End Sub

Q2.....questions

Is the workbook shared? *You can track changes when it is.

Not shared? *How and when would the workbook be accessed.

What changes would you want tracked.........all...........some?

It is easy enough to timestamp changes made and by whom but what constitutes
a change and would you want this recorded when someone saves the workbook?

Gord Dibben *MS Excel MVP

On Mon, 4 Aug 2008 17:12:57 -0700 (PDT), James8309
wrote:



Hi everyone,


I am just trying to lock the worksheet so no one can change anything
for all the worksheets.


I have 40 worksheets in a workbook and problem I am having is that I
do know how to lock worksheets by -tools-protection-protect sheet
but it just locks a single worksheet.


Q1. How do I lock all the other worksheet as well instead of clicking
each sheet and repeat what I just did?


Q2. Is it possible for me to set up some kind of 'track changes' and
find out where it is altered and actually who changed it?


Thank you so much for your help


Regards


James- Hide quoted text -


- Show quoted text -


Thank you for your help
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Protection nhen5 Excel Discussion (Misc queries) 1 May 5th 07 03:04 AM
Cell Protection vs. Worksheet Protection kmwhitt Excel Discussion (Misc queries) 4 September 24th 06 02:37 AM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Simple Copy from Worksheet to Worksheet [email protected] Excel Worksheet Functions 3 August 26th 05 02:56 PM
Worksheet Protection [email protected] Excel Discussion (Misc queries) 3 June 16th 05 11:29 PM


All times are GMT +1. The time now is 10:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"