Follow these steps:
With your row numbers (they are numbered 1,2,3,,,, etc) Replace the #2 with a formula:
=if(b3="","",a2+1)
This Assumes that Row 1 is the header row, row 2 is the 1st set of data and row 3 is the 2nd set of data. If it is differnt, adjust the formula accordingly, but put the formula in the cell where the # 2 should appear.
-When you number your rows have 1,2,3 and don't put a # sign or anything else by it.
1) Create your button or macro and start recording.
2) After you hit record, do the following steps.
3) Select the cell that you just put the formula in (wherever the number 2 appears)
4) Hit Ctrl + C to copy
5) Select the cell directly below the cell that you copied
6) Hit Shift (keep holding Shift) then Page Down (keep holding shift & take finger off page down) then hit end (keep holding shift and take finger off end) then hit up arrow. This should select the entire column that has numbers in it (nothing else)
7) Right click and select Paste-Special then the radio button 'Formulas'
8) then Select the entire row that has the formatting on it (this should be row 2, assuming the 1st row is headers). Hit Ctrl + C to copy the entire row
9) Then select the cell to the left most right below the row you copied. So if you copied row 2, you would select A3.
10) Hold the Ctrl key down and then keep holding and hit shift and keep holding and hit End. This will select all your data
11) Right click and choose Paste-Special then the radio button 'Formats'
12) Hit escape key and then select cell A1
13) Hit stop record.
Now run your macro (either by pressing button or the ctrl key you created).
Try adding a row and putting a value in column B (but no row number ) and try hitting the button.