Niven's solution worked like a charm. Thanks again. And thanks, Lee for the code in discussions tip. I felt awful posting such a long post!
Oh, and apologies for the super long code. Like I said, I'm a novice who has no idea how to insert that nifty box of code with set parameters.