Sub
NameCopyX()
Dim
x
As
Long
Dim
arrX()
As
Variant
With
Sheets(
"Tabelle1"
).Columns(1)
arrX = .Range(.Cells(1), .Cells(.Cells.Count).
End
(xlUp)).Offset(, 4).Value
End
With
With
Sheets(
"Tabelle2"
).Columns(1)
For
x = LBound(arrX, 1)
To
UBound(arrX, 1)
If
UCase(arrX(x, 1)) =
"X"
Then
.Cells(.Cells.Count).
End
(xlUp).Offset(1).Value = _
Sheets(
"Tabelle1"
).Rows(x).Cells(1)
End
If
Next
x
.RemoveDuplicates Columns:=1, Header:=xlNo
End
With
End
Sub