Ideally, I'd like it to remember the last selection so that the case you mentioned wouldn't happen, but I'm not sure how to do it that way. When I grab the ranges, the array starts at the top of the document and continues to the end. Is there a command that will get what the last selection was?