Hey guys, I've been trying to set up an archive where you enter in values on Sheet 1 and then press the button so that it moves it into Sheet 2. All existing rows with their stored data in Sheet 2 would move down one to accommodate what was entered on Sheet 1. Here's the snippet I cooked up for it to work. It sort of does what I want, but it ends up making every row the same as the one just entered.
There's probably a far nicer way of doing this, but a for loop is all I could think of. The first part of the loop is supposed to shift all the data down (pretty sure this is where my problem is), the second copies data from Sheet1 (which is entered in row 3) and pastes it into Sheet2.
Any help would be greatly appreciated!
Code:
n = Worksheets("Sheet2").Range("A:A").Cells.SpecialCells(xlCellTypeConstants).Count
For i = 1 To 6
For j = 3 To n
Worksheets("Sheet2").Cells(j+1, i) = Worksheets("Sheet2").Cells(j, i)
Next j
Worksheets("Sheet2").Cells(3, i) = Worksheets("Sheet1").Cells(3, i)
Next i
There's probably a far nicer way of doing this, but a for loop is all I could think of. The first part of the loop is supposed to shift all the data down (pretty sure this is where my problem is), the second copies data from Sheet1 (which is entered in row 3) and pastes it into Sheet2.
Any help would be greatly appreciated!