Private Sub worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Row = 3 And Target.Column = 1 Then
Dim suche As Range
Dim merker As Boolean
Set suche = Worksheets(1).Range("A1:A" & Worksheets(1).Range("A" & Rows.Count).End(xlUp).Row).Find(Worksheets(2).Cells(3, 1))
If Not suche Is Nothing Then
Letzte = Worksheets(2).Cells(Rows.Count, 1).End(xlUp).Row + 1
Worksheets(2).Cells(Letzte, 1) = Worksheets(1).Cells(suche.Row, 1)
Worksheets(2).Cells(Letzte, 2) = Worksheets(1).Cells(suche.Row, 2)
Worksheets(2).Cells(Letzte, 4) = Worksheets(1).Cells(suche.Row, 4)
Worksheets(2).Cells(Letzte, 6) = Worksheets(1).Cells(suche.Row, 6)
End If
End If
Application.EnableEvents = True
End Sub Private Sub worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Row = 3 And Target.Column = 1 Then
Dim suche As Range
Dim Letzte As Long
Set suche = Worksheets(1).Range("A1:A" & Worksheets(1).Range("A" & Rows.Count).End(xlUp).Row).Find(Worksheets(2).Cells(3, 1))
If Not suche Is Nothing Then
Letzte = Worksheets(2).Cells(Rows.Count, 1).End(xlUp).Row + 1
Worksheets(2).Cells(Letzte, 1) = Worksheets(1).Cells(suche.Row, 1)
Worksheets(2).Cells(Letzte, 2) = Worksheets(1).Cells(suche.Row, 2)
Worksheets(2).Cells(Letzte, 4) = Worksheets(1).Cells(suche.Row, 4)
Worksheets(2).Cells(Letzte, 6) = Worksheets(1).Cells(suche.Row, 6)
End If
End If
Application.EnableEvents = True
End Sub
Nach Text suchen und letzte Spalte ausgeben
simon___ 16.07.2008 - 25 Hits - 2 Antworten
Excel Text suchen und dann aus einer anderen Tabelle einsetzen.
Martin... 07.08.2008 - 75 Hits - 2 Antworten
Werte in anderer Excel-Tabelle suchen (Kopieren)
nero022 15.02.2009 - 1570 Hits - 21 Antworten
text suchen und formatieren
Fragenkatalog 19.06.2009 - 165 Hits - 4 Antworten
Wert aus inputBox in der aktuellen Tabelle suchen
Petra65 12.10.2009 - 421 Hits - 5 Antworten