+ Reply to Thread
Results 1 to 3 of 3

Another Protection Q

  1. #1
    JudithJubilee
    Guest

    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. #2
    Gord Dibben
    Guest

    Re: Another Protection Q

    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"
    <[email protected]> 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. #3
    Oliver Ferns via OfficeKB.com
    Guest

    Re: Another Protection Q

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