Sub Kopieren()
Dim raZelle As Range
Dim loLetzte As Long
Set raZelle = Worksheets("Tabelle2").Columns("F").Find("Nein", lookat:=xlWhole)
If Not raZelle Is Nothing Then
With Worksheets("Tabelle3")
loLetzte = IIf(IsEmpty(.Cells(.Rows.Count, 1)), .Cells(.Rows.Count, 1).End(xlUp).Row, .Rows.Count) + 1
Worksheets("Tabelle2").Range("A1:AH" & raZelle.Row - 1).Copy .Cells(loLetzte, 1)
Worksheets("Tabelle2").Range("A1:AH" & raZelle.Row - 1).Copy .Cells(loLetzte + raZelle.Row - 1, 1)
Worksheets("Tabelle2").Range("A1:AH" & raZelle.Row - 1).Copy .Cells(loLetzte + (raZelle.Row - 1) * 2, 1)
End With
End If
End Sub
Set raZelle = Worksheets("Tabelle2").Columns("F").Find("Nein", lookat:=xlWhole)
Sub Kopieren()
Dim raZelle As Range
Dim loLetzte As Long
Set raZelle = Worksheets("Tabelle1").Columns("F").Find("Nein", lookat:=xlWhole)
If Not raZelle Is Nothing Then
With Worksheets("Tabelle3")
loLetzte = IIf(IsEmpty(.Cells(.Rows.Count, 6)), .Cells(.Rows.Count, 6).End(xlUp).Row, .Rows.Count) + 1
Worksheets("Tabelle2").Range("A1:AH34").Copy
loLetzte = IIf(IsEmpty(.Cells(.Rows.Count, 6)), .Cells(.Rows.Count, 6).End(xlUp).Row, .Rows.Count) + 1
Worksheets("Tabelle2").Range("A1:AH34").Copy .Cells(loLetzte, 1)
loLetzte = IIf(IsEmpty(.Cells(.Rows.Count, 6)), .Cells(.Rows.Count, 6).End(xlUp).Row, .Rows.Count) + 1
Worksheets("Tabelle2").Range("A1:AH34").Copy .Cells(loLetzte, 1)
End With
End If
End Sub
VBA: Inhalt von 2 ListBoxen in eine Zelle kopieren
daManuu 05.11.2008 - 32 Hits - 3 Antworten
Zeilen mit Inhalt kopieren
jockel01 04.12.2008 - 55 Hits - 1 Antwort
Kommentare ohne Zelle+Inhalt kopieren
Elbryan 31.07.2009 - 214 Hits - 9 Antworten
nach Eingabe formatierten Inhalt kopieren
Ulle-gt5 04.10.2009 - 219 Hits - 13 Antworten
Excel - VBA - Daten inkl.Vorlage in neuer Tabelle untereinander kopieren
TSM1981 31.03.2010 - 479 Hits - 4 Antworten