Hi,
i want to protect just one line in the whole sheet.
But it's not working :-(
Can anybody give my a hint what i'm doing wrong ?
Here is the code i wrote:
Sheets("tabelle1").Activate
Cells.Select
Selection.Locked = False
Range(A1, Z1).Locked = True
Sheets("tabelle1").Protect Password:="test", contents:=True
Thanks !
i want to protect just one line in the whole sheet.
But it's not working :-(
Can anybody give my a hint what i'm doing wrong ?
Here is the code i wrote:
Sheets("tabelle1").Activate
Cells.Select
Selection.Locked = False
Range(A1, Z1).Locked = True
Sheets("tabelle1").Protect Password:="test", contents:=True
Thanks !