VBA Copy und Paste nur Werte
12.05.2020 19:41:30
Ralf
ein #Bezugsfehler kommt. Ich möchte deshalb nur die Werte einfügen. Hat jemand einen Rat?
VBA Code:
Sub copyCells()
Dim wsKopie As Worksheet, iLetzte
Set wsKopie = Tabelle2
Dim lastrow As Long
lastrow = Range("A65536").End(xlUp).Row
With ActiveSheet
iLetzte = wsKopie.Cells(wsKopie.Rows.Count, 1).End(xlUp).Row + 1
.Range("C7").Copy Destination:=Sheets(2).Range("A" & iLetzte)
.Range("t2").Copy Destination:=Sheets(2).Range("B" & iLetzte)
.Range("y7").Copy Destination:=Sheets(2).Range("C" & iLetzte)
.Range("").Copy Destination:=Sheets(2).Range("D" & iLetzte)
End With
End Sub