• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to protect sheets in excel workbook

Hello Everybody.

Iam new to forum and to vba...i have quick question and struck with project work..what i need is to protect all sheets in excel workbook.


Thanks

Arpana
 
Arpana.

You may also required to unprotect them...So here is the code..

Code:
Sub Unprotect_Sht()

Dim I As Integer

For I = 1 To Sheets.Count
    Sheets(I).Unprotect Password:="arpana"
Next I

End Sub
Hope this will help you.
 
Hello Monty

Thank you so much...You are master.

it was really so quick response...

both macros are working fine...i have more question to ask..hope you don't mind..
 
Dear Arpana.

Am also learning with this forum..and we should thanks to Chandoo and Hui..who made this possible and it's not only mee going to help you there are so many professionals on this forum...

Monty.
 
Last edited:
Back
Top