I have just merged both the threads
I have just merged both the threads
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Just typing this on the fly... watch out for any typ0s
Code:Sub Auto_Open() Dim wks as worksheet for each wks in thisworkbook.worksheets wks.Unprotect PassWord:=""' If there's a password, use it within the double quote wks.Protect UserInterfaceOnly:=True, Password=""' If there's a password, use it within the double quote next wks End Sub
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
If you were just wanting to protect that particular sheet, then use
EDIT: Added a semi-colon to the argumentCode:Sub Auto_Open() With Worksheets("Particular Sheet Name") .Unprotect PassWord:=""' If there's a password, use it within the double quote .Protect UserInterfaceOnly:=True, Password:=""' If there's a password, use it within the double quote End With End Sub
Last edited by Excel Fox; 08-03-2013 at 04:19 PM. Reason: Missed to add a semi-colon
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
I've made a small correction. Check my previous post.
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
The code has to be pasted in a code module, and not in the sheet module or workbook module. Also ensure that the cell you're using is locked.
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Bookmarks