Code tested with the file source supplied to us by you in post #3.