
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'
If Intersect(Target, Range("B9:E9")) Is Nothing Then Exit Sub
Range("B12:K13").Value = ""
end sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "F54" Then
Call T_MANUALE
Else
If Target.Address(0, 0) = "F62" Then
Call T_FLEX
End If
End If
End Sub |
Sub nome()
With Application
.EnableEvents = False
End With
[...]
With Application
.EnableEvents = False
End With
end sub |
Sub T_MANUALE()
Range("F62").Value = ""
Exit Sub
End Sub
Sub T_FLEX()
Range("F54").Value = ""
Exit Sub
End Sub
|
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1:B10")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If Target.Column = 1 Then
Cells(Target.Row, 2).ClearContents
Else
Cells(Target.Row, 1).ClearContents
End If
Application.EnableEvents = True
End Sub
|
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("F54,F62")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If Target.Row = 54 Then
Cells(62, Target.Column).ClearContents
Else
Cells(54, Target.Column).ClearContents
End If
Application.EnableEvents = True
End Sub |
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Intersect(Target, Sheets("RE").Range("B9:K9")) Is Nothing Then Exit Sub
Range("B12:K13").Value = ""
End Sub
|
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("F54,F62")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If Target.Row = 54 Then
Cells(62, Target.Column).ClearContents
Else
Cells(54, Target.Column).ClearContents
End If
Application.EnableEvents = True
End Sub |
