PC Review


Reply
Thread Tools Rate Thread

Applying Protection To Multiple Sheets

 
 
Mhz
Guest
Posts: n/a
 
      5th Jul 2006

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
------------------------------------------------------------------------
Mhz's Profile: http://www.excelforum.com/member.php...o&userid=35980
View this thread: http://www.excelforum.com/showthread...hreadid=558376

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2hlaWxhIEQ=?=
Guest
Posts: n/a
 
      5th Jul 2006
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

"Mhz" wrote:

>
> 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
> ------------------------------------------------------------------------
> Mhz's Profile: http://www.excelforum.com/member.php...o&userid=35980
> View this thread: http://www.excelforum.com/showthread...hreadid=558376
>
>

 
Reply With Quote
 
Paul B
Guest
Posts: n/a
 
      5th Jul 2006
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



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


"Mhz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
> ------------------------------------------------------------------------
> Mhz's Profile:
> http://www.excelforum.com/member.php...o&userid=35980
> View this thread: http://www.excelforum.com/showthread...hreadid=558376
>



 
Reply With Quote
 
Mhz
Guest
Posts: n/a
 
      6th Jul 2006

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.


--
Mhz
------------------------------------------------------------------------
Mhz's Profile: http://www.excelforum.com/member.php...o&userid=35980
View this thread: http://www.excelforum.com/showthread...hreadid=558376

 
Reply With Quote
 
Paul B
Guest
Posts: n/a
 
      6th Jul 2006
Mhz, thanks for the feedback
--
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

"Mhz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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.
>
>
> --
> Mhz
> ------------------------------------------------------------------------
> Mhz's Profile:
> http://www.excelforum.com/member.php...o&userid=35980
> View this thread: http://www.excelforum.com/showthread...hreadid=558376
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protection on Multiple Sheets Sophie Microsoft Excel Misc 7 26th Feb 2010 06:30 PM
Applying autofill macro that covers multiple sheets/columns bawpie Microsoft Excel Programming 4 3rd Sep 2009 12:04 PM
Sheet protection on multiple sheets Mike Microsoft Excel Discussion 5 8th Apr 2005 06:18 PM
while using macros applying formats to multiple sheets =?Utf-8?B?ZnJ1c3RyYXRlZCB3b3JrZXIgMg==?= Microsoft Excel Worksheet Functions 0 13th May 2004 01:16 PM
Re: Removing and Applying protection in VBA steve Microsoft Excel Programming 2 20th Oct 2003 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 PM.