I'm trying to write a basic code where I'm copying a variable amount of cells from the previous sheet and INSERTING those copied cells in a new sheet, where it pushes the data I've already put in the new sheet down.
This is a weekly task where I open a new sheet, paste some new information in it, then run the code to copy the previous weeks sheet and insert the copied cells into the new sheet.
`ActiveSheet.Previous.Select
Range("A2:K2").Select
Range(Selection, Selection.End(xlDown)).Copy
ActiveSheet.Next.Select
ActiveSheet.Cells(2, 1).Select
Selection.Insert Shift:=xlDown`
For some reason, the Selection.Insert Shift:=xlDown
command crashes my excel. I've read a lot about how to solve this problem but most solutions revolve around running the code in the same sheet. But since it's a new sheet every week, I can't set it to a certain relevant worksheet. ie i'm trying to avoid using Dim, Set and With to define a sheet.