wie kann ich in einem bestimmten Bereich (A5:A500) am schnellsten nach der zuletzt beschriebenen Zeile suchen, diese komplett kopieren und eine Zeile darunter nur mit den entsprechenden Formaten (ohne Werte) wieder einfügen?
Danke!
Gruß
Heinz
Sub LastRowCopy()
LR = Cells(500, 1).End(xlUp).Row
Cells(LR, 1).Copy
Cells(LR + 1, 1).PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub
Sub LastRowCopy()
For i = 1 To 6
LR = Cells(500, i).End(xlUp).Row
Cells(LR, i).Copy
Cells(LR + 1, i).PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next i
Application.CutCopyMode = False
End Sub
Sub LastRowCopy2()
LR = Cells(500, 1).End(xlUp).Row 'letzte Zeile aus Bereich aus SpalteA
Cells(LR, 1).Copy
For i = 1 To 6
Cells(LR + 1, i).PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next i
Application.CutCopyMode = False
End Sub
Sub LastRowCopy()
Dim laR As Long
laR = Cells(500, 1).End(xlUp).Row
Range("A" & laR & ":F" & laR).Copy
Range("A" & laR + 1).PasteSpecial Paste:=xlPasteFormats, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End Sub