hello
i want to protect my all sheets at once
thanx
hello
i want to protect my all sheets at once
thanx
Try this... Replace the word protect with Unprotect to un-protect the sheets
![]()
Sub ProtectAllSheets() Dim Ws As Worksheet Application.ScreenUpdating = False For Each Ws In ThisWorkbook.Sheets Ws.Protect "mypassword" Next Ws Application.ScreenUpdating = True End Sub
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Thanx 2*S
works perfect
will add u reput![]()
Whether by the user interface or by code, they need to be protected one at a time.
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks