#1   Report Post  
JudithJubilee
 
Posts: n/a
Default Another Protection Q

Hello there,

I also would like to know how to protect multiple sheets
within the same workbook at once. I am using 2000.

Thanks

Judith
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Judith

VBA code must be used.

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

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 Excel MVP

On Thu, 3 Mar 2005 19:29:39 -0800, "JudithJubilee"
wrote:

Hello there,

I also would like to know how to protect multiple sheets
within the same workbook at once. I am using 2000.

Thanks

Judith


  #3   Report Post  
Oliver Ferns via OfficeKB.com
 
Posts: n/a
Default

Hi,
You can't. You will have to protect each one individually (I believe).

For X = 1 to 3
Sheets(x).protect
Next


Hth,
O

--
Message posted via http://www.officekb.com
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
workbook protection John New Users to Excel 1 January 22nd 05 12:55 PM
Seeking help for total worksheet protection Joseph Geretz Excel Discussion (Misc queries) 10 December 31st 04 06:48 PM
protection on excel forms cben Excel Worksheet Functions 1 December 14th 04 02:23 PM
How may I remove Office 2003 DRM protection from DOC & XLS files? Locked out Excel Discussion (Misc queries) 1 December 12th 04 05:22 PM
Cell Colors and Sheet Protection cincode5 Excel Discussion (Misc queries) 1 December 3rd 04 10:39 PM


All times are GMT +1. The time now is 09:13 PM.

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"