Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: worksheet protection

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    is there any way to protect all worksheets within a workbook at one time as opposed to protecting each sheet one at a time?

  2. #2
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    using VBA you can protect sheets easily.


    Public Sub protectsheets()
    Dim oSheet As Worksheet

    For Each oSheet In Worksheets
    oSheet.Protect Password:= ""
    Next

    End Sub


    This protects them with no password.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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