I have this workbook:
I need to have a macro button that my users can click that say “Click Here to Copy”, then i need a code that copies rows number 5-25 of sheet titled “TC-Star Here”, and i need the copied rows to be inserted (i need the pasted rows to not auto delete the ones that were there previously, so the inserted rows would have to shift the previous ones down) into another sheet named “Time Cards”. The inserted rows, i need to have to code insert them starting at cell A1. So everytime the macro button is clicked, rows are copied, and inserted with the previous data unmodified/deleted.
I have this code so far:
Sub CopyInfo()
On Error GoTo Err_Execute
Sheet2.Range("A1:F11").Value = Sheet1.Range("A1:F11").Value
Sheet1.Range("A1:F11").Copy
Sheet2.Range("A1").InsertCopiedCells
Err_Execute:
MsgBox "All have been copied!"
End Sub
But everytime the button is clicked, it pastes the rows over the existing rows.
Please Help.
Is this what you are trying?