+ Reply to Thread
Results 1 to 2 of 2

protecting all sheets at once

  1. #1
    Registered User
    Join Date
    03-07-2006
    Posts
    19

    protecting all sheets at once

    So I am using the following code to protect all my sheets...

    Sub protect()

    For Each ws In Sheets

    ws.protect Password:="jan"

    Next ws

    End Sub

    Am I able, in VBA, to set the protection attributes as well? I want to allow the user to be able to just select unlocked cells which the default has both lock and unlocked checked.

    Please Help!

    Thanks,

    Jerred

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Try this:
    Please Login or Register  to view this content.
    Not all forums are the same - seek and you shall find

+ 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