Columns Protection

  • Thread starter Thread starter M-Hero
  • Start date Start date
M

M-Hero

Would anyone happen to know how to protect a specific
column? I know how to protect Workbook and Worksheet, but
Column.
 
I figured out how to protect specific columns already;
Check this out.

Sub Lock_Columns()
'To lock specific columns
 
To lock specific columns; check this out.

Sub lock_columns()
Cells.Select
Selection.Locked = False
Selection.FormulaHidden = False
Columns("B:C").Select
Selection.Locked = True
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub
 
Back
Top