Group:  Microsoft Excel ยป microsoft.public.excel.newusers
Thread: Applying Protection To Multiple Sheets

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Applying Protection To Multiple Sheets
Mhz <Mhz.2agz7c_1152098405.9273[ at ]excelforum-nospam.com> 05.07.2006 11:18:59
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?action=getinfo&userid=35980 View this thread: http://www.excelforum.com/showthread.php?threadid=558376
RE: Applying Protection To Multiple Sheets
Sheila D 05.07.2006 12:49:02
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:

[Quoted Text]
>
> 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?action=getinfo&userid=35980
> View this thread: http://www.excelforum.com/showthread.php?threadid=558376
>
>
Re: Applying Protection To Multiple Sheets
"Paul B" <to_much_spam_to_list[ at ]nospam.com> 05.07.2006 17:27:20
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" <Mhz.2agz7c_1152098405.9273[ at ]excelforum-nospam.com> wrote in message
news:Mhz.2agz7c_1152098405.9273[ at ]excelforum-nospam.com...
[Quoted Text]
>
> 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?action=getinfo&userid=35980
> View this thread: http://www.excelforum.com/showthread.php?threadid=558376
>


Re: Applying Protection To Multiple Sheets
Mhz <Mhz.2ail2p_1152173407.8978[ at ]excelforum-nospam.com> 06.07.2006 08:06:01
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?action=getinfo&userid=35980 View this thread: http://www.excelforum.com/showthread.php?threadid=558376
Re: Applying Protection To Multiple Sheets
"Paul B" <to_much_spam_to_list[ at ]nospam.com> 06.07.2006 12:22:50
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" <Mhz.2ail2p_1152173407.8978[ at ]excelforum-nospam.com> wrote in message
news:Mhz.2ail2p_1152173407.8978[ at ]excelforum-nospam.com...
[Quoted Text]
>
> 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?action=getinfo&userid=35980
> View this thread: http://www.excelforum.com/showthread.php?threadid=558376
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net