+ Reply to Thread
Results 1 to 5 of 5

Applying Protection To Multiple Sheets

  1. #1
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Question Applying Protection To Multiple Sheets

    SORRY, Did the Search and found a few helpful Macros, Wish I didn't have to use a Macro, .. Thanks Anyhow



    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. Thanks In Advance..
    Last edited by Mhz; 07-05-2006 at 07:55 AM.

  2. #2
    Sheila D
    Guest

    RE: Applying Protection To Multiple Sheets

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


  3. #3
    Paul B
    Guest

    Re: Applying Protection To Multiple Sheets

    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" <[email protected]> wrote in message
    news:[email protected]...
    >
    > 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
    >




  4. #4
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183
    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.

  5. #5
    Paul B
    Guest

    Re: Applying Protection To Multiple Sheets

    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" <[email protected]> wrote in message
    news:[email protected]...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1