Dear All,
I'm attempting to protect the entire worksheet except for a set column "H" can be editing
I use below vba the problem is all entire worksheet is protect please help how to :
I'm attempting to protect the entire worksheet except for a set column "H" can be editing
I use below vba the problem is all entire worksheet is protect please help how to :
Code:
Sub Lock_data()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingColumns:=True, AllowFormattingRows:=True, Password:="12345"
Next ws
End Sub