To lock all the cells and protect the sheet........
Sub SHEETPROTECT()
With ActiveSheet
.Cells.Locked = True
.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End With
End Sub
Gord Dibben MS Excel MVP
on Wed, 22 Nov 2006 12:56:01 -0800, Shlomit <Shlomit@discussions.microsoft.com>
wrote:
>So how can I lock all the cells and protected the sheet in the macro?
>
[quoted text clipped - 16 lines]
>> > Thanks,
>> > shlomit