A-T all contain data that needs to be selected. I do not have anything to find the last row, but the last row needs to be included in the selection. Basically need to select the entire data after the lines inserted and sort by column q (type) and column r (date).