Aber klar doch. Hier der Code:
' **********************************************************************
' Modul: Tabelle1 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Sh As Worksheet
With Target
'--- Prüfungen------
If .Column = 6 Or .Column = 7 Or .Column = 9 Or .Column = 10 Then
If .Row > 7 And .Row < 34 Then
If Application.CountA(Cells(.Row, 6), Cells(.Row, 7), Cells(.Row, 9), Cells(.Row, 10)) = 4 Then
On Error Resume Next
Set Sh = Sheets(Right(Cells(.Row, 12), 4))
Err.Clear
On Error GoTo 0
If Not Sh Is Nothing Then
'----Kopieren und löschen-----------------------
On Error GoTo ErrExit
Application.EnableEvents = False
Application.ScreenUpdating = False
Sh.Unprotect
Me.Unprotect
Sh.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = Rows(.Row)
Rows(.Row).Delete
Me.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Sh.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Else
MsgBox "kein passendes Arbeitsblatt gefunden"
End If
End If
End If
End If
End With
ErrExit:
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
Gruß ACR