+ Reply to Thread
Results 1 to 2 of 2

Password protecting certain worksheets in a file

  1. #1
    Mike
    Guest

    Password protecting certain worksheets in a file

    How do I set passwords to protect just certain worksheets
    in a file?

  2. #2
    JE McGimpsey
    Guest

    Re: Password protecting certain worksheets in a file

    If you mean worksheet passwords, one way:

    Public Sub ProtectSomeButNotAll()
    Const sPWORD As String = "drowwsap"
    Dim vSheets As Variant
    Dim i As Long
    vSheets = Array("Sheet1", "Sheet3", "Sheet5")
    For i = LBound(vSheets) To UBound(vSheets)
    Worksheets(vSheets(i)).Protect sPWORD
    Next i
    End Sub


    In article <071001c53487$7cdd3bb0$a601280a@phx.gbl>,
    "Mike" <anonymous@discussions.microsoft.com> wrote:

    > How do I set passwords to protect just certain worksheets
    > in a file?


+ 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