Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lee lee is offline
external usenet poster
 
Posts: 184
Default Multiple Worksheet Protection

I have a workbook that has multiple worksheets with the same format. Is
there a way to protect cells on these multiple worksheets at the same time.
The group feature does not work for this and having to do each worksheet
separately is very timeconsuming
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Multiple Worksheet Protection

Lee

Grouping sheets to select cells is not a problem, but the protecting of grouped
sheets must be VBA assisted.

Group the sheets to select the cells to be locked or unlocked on all sheets.

Ungroup when done.

Then run this macro to 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

And to 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


Gord Dibben MS Excel MVP

On Fri, 29 Sep 2006 12:19:02 -0700, Lee wrote:

I have a workbook that has multiple worksheets with the same format. Is
there a way to protect cells on these multiple worksheets at the same time.
The group feature does not work for this and having to do each worksheet
separately is very timeconsuming


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 inay Excel Discussion (Misc queries) 0 February 23rd 06 10:35 PM
Worksheet protection problem Frederick Chow Excel Discussion (Misc queries) 0 January 5th 06 07:08 PM
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
Excel should let me format worksheet tabs in multiple rows. Fawzi_Masri Excel Worksheet Functions 1 September 19th 05 06:23 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 03:49 AM


All times are GMT +1. The time now is 05:07 PM.

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

About Us

"It's about Microsoft Excel"