
Sub Sblocca()
'
ActiveSheet.Unprotect
End Sub
' =====================================
Sub celleBloccate()
'
Dim c As Range
For Each c In Selection
If c.Locked = False Then
c.Interior.ColorIndex = 6
End If
Next
End Sub |
Worksheets("tuo_foglio").Protect , userinterfaceonly:=True
|
Sub Blocca()
' Blocca Macro
ActiveWindow.SmallScroll ToRight:=-10
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowInsertingColumns:=True, AllowInsertingRows _
:=True, AllowSorting:=True
End Sub |
