This code is to take the user input from the InputBox and then compare them with the last two characters of the contents of two consecutive rows. Then copy all those rows with the match.
But the version down here only deals with it when the match is found in the first two rows of the dataset...