Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Applying Protection To Multiple Sheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mhz - 05 Jul 2006 12:18 GMT
Is there a quick formula to apply a protection code for multiple sheets
without having to protect each sheet one at a time??  

Actually this appears to be quite crazy that you can't protect all
sheets at once.....    Hopefully Excel 2007 will allow this.   Thnaks
In Advance..

Signature

Mhz

Sheila D - 05 Jul 2006 13:49 GMT
Only way I've found is to create and protect the first sheet and then copy to
another sheet. This retains the protection. HTH

Sheila
www.c-i-m-s.com

> Is there a quick formula to apply a protection code for multiple sheets
> without having to protect each sheet one at a time??  
>
> Actually this appears to be quite crazy that you can't protect all
> sheets at once.....    Hopefully Excel 2007 will allow this.   Thnaks
> In Advance..
Paul B - 05 Jul 2006 18:27 GMT
Mhz, here is one way with a macro,

Sub Protect_All_Sheets()

Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets

ws.Protect password:="123"

Next ws

End Sub

To put in this macro, from your workbook right-click the workbook's icon and
pick View Code. This icon is to the left of the "File" menu this will open
the VBA editor, in Project Explorer click on your workbook name, if you
don't see it press CTRL + r to open the Project Explorer, then go to insert,
module, and paste the code in the window that opens on the right hand side,
press Alt and Q to close this window and go back to your workbook  and press
alt and F8, this will bring up a box to pick the Macro from, click on the
Macro name to  run it. If you are using  excel 2000 or newer you may have to
change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium

Signature

Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

> Is there a quick formula to apply a protection code for multiple sheets
> without having to protect each sheet one at a time??
>
> Actually this appears to be quite crazy that you can't protect all
> sheets at once.....    Hopefully Excel 2007 will allow this.   Thnaks
> In Advance..
Mhz - 06 Jul 2006 09:06 GMT
Thanks Alot Paul B, and sheila as well.

In Fact Paul It was your VBA Macro I used when I was Searching.. Very
Straight Forward and useful,  Thanks Very Much.:)

Signature

Mhz

Paul B - 06 Jul 2006 13:22 GMT
Mhz, thanks for the feedback
Signature

Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

> Thanks Alot Paul B, and sheila as well.
>
> In Fact Paul It was your VBA Macro I used when I was Searching.. Very
> Straight Forward and useful,  Thanks Very Much.:)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.