Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

Problem mit Copy Destination

Forumthread: Problem mit Copy Destination

Problem mit Copy Destination
Peter
Guten Abend
Was ist an dieser untenstehender Codezeile falsch (Anwendungs- oder objektdefinierter Fehler)?
Es gibt sowohl die Tabelle "VK01" als auch "VKQ1"
lngEnd1 = 14
lngEnd = 5
Wo liegt das Problem?
Gruss, Peter
Sheets("VK01").Range(Cells(5, 1), Cells(lngEnd1, 1)).Copy Destination:=Sheets("VKQ1").Cells(lngEnd, 1)
Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Benutzer
Anzeige
AW: Problem mit Copy Destination
23.11.2010 00:14:23
Uduuh
Hallo,
mangelhafte Referenzierung.
Sheets("VK01").Range(Sheets("VK01").Cells(5, 1), Sheets("VK01").Cells(lngEnd1, 1)).Copy Destination:=Sheets("VKQ1").Cells(lngEnd, 1)

oder in einen With-Rahmen packen
With Sheets("VK01")
.Range(.Cells(5, 1), .Cells(lngEnd1, 1)).Copy Destination:=Sheets("VKQ1").Cells(lngEnd, 1)
End With

Gruß aus’m Pott
Udo

Anzeige
AW: Vielen Dank !! owT
23.11.2010 00:31:10
Peter
Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18