Record button records the user actions fro you but it wont do 100% of the job. You have to manually add/ delete some actions depending on your requirement.
After First line Focus, add a "Copy Value" script line and after line 5 use a "paste value". Don't know your skill level but if you have questions on how to use copy paste, refer this blog.