I have a macro that pastes values from one sheet to another (controlos -> database) populating the first unpopulated row, and it works mostly fine. However it doesn't copy & paste values from cell D10 on sheet1 (controlos) to the last unpopulated cell on the D column. After it supposedly does that, it clears out the cells on the first sheet to register another. The problematic part:
*Sheets("controlos").Select
Range("D10").Select
ActiveSheet.Paste
Selection.Copy
Sheets("database").Select
Range("D1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveSheet.Paste
Sheets("controlos").Select*