Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
With Target
If .Worksheet.Index = 1 Then Exit Sub
If .Worksheet.Index > 3 Then Exit Sub
If .Column = 41 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 27 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 1 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 16 Then
If .Row < 3 Then Exit Sub
If .Row > 40 Then Exit Sub
If .Row >= 24 And .Row <= 26 Then Exit Sub
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 20 Then
If .Row < 3 Then Exit Sub
If .Row > 40 Then Exit Sub
If .Row >= 24 And .Row <= 26 Then Exit Sub
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
End With
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
With Target
If .Worksheet.Index > 4 Then Exit Sub
If .Worksheet.Index > 8 Then Exit Sub
If .Column = 45 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 30 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 1 Then
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 17 Then
If .Row < 3 Then Exit Sub
If .Row > 40 Then Exit Sub
If .Row >= 24 And .Row <= 26 Then Exit Sub
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
If .Column = 22 Then
If .Row < 3 Then Exit Sub
If .Row > 40 Then Exit Sub
If .Row >= 24 And .Row <= 26 Then Exit Sub
If .Count > 1 Then Exit Sub
If .Value = "" Then .Offset(, 1).ClearContents
End If
End With
End Sub