Function.Match
20.11.2006 10:54:33
otto
Ich möchte Datensätze mit folgender Syntax zurückkopieren, anhand des Wertes in Spalte 28 der Tabelle "Übersicht" in die entsprechende Zeile der Tabelle "Bestand".
Es kommt aber "Argument ist nicht Optional" - Was ist falsch?
Dim zeile As Long
For i = 10 To Sheets("Übersicht").Cells(65536, 2).End(xlUp).Row
zeile = WorksheetFunction.Match(Sheets("Übersicht").Cells(i, 28).Value)
Sheets("Übersicht").Rows(i).Copy Destination:=Sheets("Bestand").Rows(zeile)
Gruß
otto