|Here is an example of how it can be done, but you will need to test and tell us what you need the code to do to meet your requirements.|
Assuming you are using 'Sheet1'
Press and hold Alt on your keyboard and press F11
When the window opens
double click on sheet1
paste the code
Now go to sheet1 of Excel
highlight row 2
Hold Ctrl and Shift together then press the down key
This will highlight ALL rows apart from 1
now right click on the number 2 of row 2 and press hide
Now whenever you enter something in column 1 and then enter to select out of that cell, two new rows will be unhidden below.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
For i = 1 To 2
Sheet1.Rows(ActiveCell.Row + i).EntireRow.Hidden = False
Give it a go and see if it does what you need.