
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim campo As Range
Set campo = Range("M13:O43,B12:P12,A13:A43,A2:F6,G2:O6,P2:P6,Q2:T6,R12:T12,R15:T15,R18:T18,R16:T16,R19:T19")
If Not Intersect(Target, campo) Is Nothing Then
MsgBox "Cella non selezionabile", 0 + 163, "Errore"
Cells(1, 1).Select
GoTo 1
End If
1 Set campo = Nothing
End Sub |
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim campo As Range
Set campo = Range("M13:O43,B12:P12,A13:A43,A2:F6,G2:O6,P2:P6,Q2:T6,R12:T12,R15:T15,R18:T18,R16:T16,R19:T19")
If Not Intersect(Target, campo) Is Nothing Then
Beep
MsgBox "Cella non selezionabile", 0 + 163, "Errore"
ActiveCell.Offset(0, -1).Select
GoTo 1
End If
1 Set campo = Nothing
End Sub
|
