I am trying to migrate code that was generated as recorded Excel macro to VB code. Can someone tell me why the interpreter stops at the enclosed row? I am using F8 to step and the error is generated at line: "Selection.Delete Shift:=xlUp".
I copied the code that was in a different work book to a new work book.
Excel says "error 1004". "Program/application or object defined error".
I copied the code that was in a different work book to a new work book.
Excel says "error 1004". "Program/application or object defined error".
Code:
ActiveCell.Rows("1:1").EntireRow.Select
Selection.Delete Shift:=xlUp
ActiveCell.Offset(1, 0).Range("Tabelldata__4[[#Headers],[Column1]]").Select
Selection.Copy
Last edited by a moderator: