For some reason the search routine I'm using for finding ranges and replacing them with text is searching from the end of the